From 5ca98fd98791947eba83a1ed3f2c8191ef7afa6c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 24 Nov 2014 09:08:18 +0000 Subject: Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_350/final@216957 --- test/CodeGen/Mips/micromips-directives.ll | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/CodeGen/Mips/micromips-directives.ll (limited to 'test/CodeGen/Mips/micromips-directives.ll') diff --git a/test/CodeGen/Mips/micromips-directives.ll b/test/CodeGen/Mips/micromips-directives.ll new file mode 100644 index 000000000000..dd0bd5836d28 --- /dev/null +++ b/test/CodeGen/Mips/micromips-directives.ll @@ -0,0 +1,16 @@ +; This test checks if the '.set [no]micromips' directives +; are emitted before a function's entry label. + +; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+micromips %s -o - | \ +; RUN: FileCheck %s -check-prefix=CHECK-MM +; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 -mattr=-micromips %s -o - | \ +; RUN: FileCheck %s -check-prefix=CHECK-NO-MM + +define i32 @main() nounwind { +entry: + ret i32 0 +} + +; CHECK-MM: .set micromips +; CHECK-NO-MM: .set nomicromips +; CHECK: main: -- cgit v1.3