ARM: fixup tests to specify the target more explicitly
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 2 Apr 2014 21:22:03 +0000 (21:22 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 2 Apr 2014 21:22:03 +0000 (21:22 +0000)
This changes the tests that were targeting ARM EABI to explicitly specify the
environment rather than relying on the default.  This breaks with the new
Windows on ARM support when running the tests on Windows where the default
environment is no longer EABI.

Take the opportunity to avoid a pointless redirect (helps when trying to debug
with providing a command line invocation which can be copy and pasted) and
removing a few greps in favour of FileCheck.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205465 91177308-0d34-0410-b5e6-96231b3b80d8

20 files changed:
test/CodeGen/ARM/2006-11-10-CycleInDAG.ll
test/CodeGen/ARM/2007-04-03-PEIBug.ll
test/CodeGen/ARM/2007-05-14-InlineAsmCstCrash.ll
test/CodeGen/ARM/2007-05-23-BadPreIndexedStore.ll
test/CodeGen/ARM/2008-03-05-SxtInRegBug.ll
test/CodeGen/ARM/2008-07-17-Fdiv.ll
test/CodeGen/ARM/2008-07-24-CodeGenPrepCrash.ll
test/CodeGen/ARM/2008-11-18-ScavengerAssert.ll
test/CodeGen/ARM/2009-03-09-AddrModeBug.ll
test/CodeGen/ARM/2009-04-06-AsmModifier.ll
test/CodeGen/ARM/2009-04-08-AggregateAddr.ll
test/CodeGen/ARM/2009-04-08-FREM.ll
test/CodeGen/ARM/2009-04-08-FloatUndef.ll
test/CodeGen/ARM/2009-04-09-RegScavengerAsm.ll
test/CodeGen/ARM/2009-05-11-CodePlacementCrash.ll
test/CodeGen/ARM/2009-05-18-InlineAsmMem.ll
test/CodeGen/ARM/2009-07-09-asm-p-constraint.ll
test/CodeGen/ARM/2009-07-22-SchedulerAssert.ll
test/CodeGen/ARM/2009-08-31-TwoRegShuffle.ll
test/CodeGen/ARM/2009-09-10-postdec.ll

index a0235f787061dc62d6bb15c0da430182f9d86e35..f8bd886aa9e1494555ea479d41124cef01c475b8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm -mattr=+v6
+; RUN: llc -mtriple=arm-eabi -mattr=+v6 %s -o /dev/null
 
 %struct.layer_data = type { i32, [2048 x i8], i8*, [16 x i8], i32, i8*, i32, i32, [64 x i32], [64 x i32], [64 x i32], [64 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [12 x [64 x i16]] }
 @ld = external global %struct.layer_data*               ; <%struct.layer_data**> [#uses=1]
index 8d3337c29fcf820629f8842bd7d0ecff9fedac3c..cf5094fb3800d217246cfabdfe8ba63109703773 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm | not grep "add.*#0"
+; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
 
 define i32 @foo() {
 entry:
@@ -10,3 +10,6 @@ entry:
 }
 
 declare i32 @bar(...)
+
+; CHECK-NOT: add{{.*}}#0
+
index b3b0769347f16f2506dae7248edf579b97782c2d..99e67d501ca0ac65832f7691d73a7c3f29a565cf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm -mattr=+v6
+; RUN: llc -mtriple=arm-eabi -mattr=+v6 %s -o /dev/null
 
 define i32 @test3() {
        tail call void asm sideeffect "/* number: ${0:c} */", "i"( i32 1 )
index 670048bf25c415421093405f24282ec048337d3c..5988c65dae6cf1f19b2433ca793b90ee17ea11b8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm | not grep "str.*\!"
+; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
 
        %struct.shape_edge_t = type { %struct.shape_edge_t*, %struct.shape_edge_t*, i32, i32, i32, i32 }
        %struct.shape_path_t = type { %struct.shape_edge_t*, %struct.shape_edge_t*, i32, i32, i32, i32, i32, i32 }
@@ -32,3 +32,6 @@ bb140:                ; preds = %bb140, %cond_false
 bb174:         ; preds = %bb140, %cond_false
        ret %struct.shape_path_t* null
 }
+
+; CHECK-NOT: str{{.*}}!
+
index a604c5cd574e23033e1725705d8282922e12339a..95aa5958cf27ae4699a7b34bf9ea641a045468e6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm -mattr=+v6 | not grep 255
+; RUN: llc -mtriple=arm-eabi -mattr=+v6 %s -o - | FileCheck %s
 
 define i32 @main(i32 %argc, i8** %argv) {
 entry:
@@ -12,3 +12,6 @@ bb2:          ; preds = %bb1
 bb3:           ; preds = %bb1
        ret i32 0
 }
+
+; CHECK-NOT: 255
+
index 4cb768ef5b6d37e1a67e6883a002310c16350218..9f50d92a4d8e3a28963453c0333144fe4f07de09 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm
+; RUN: llc -mtriple=arm-eabi %s -o /dev/null
 
 define float @f(float %a, float %b) nounwind  {
        %tmp = fdiv float %a, %b
index 83fde07779bc0305280069e6c556393c226985da..e86bc1ba5ccc011bdeb7d22cefd206f535346390 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm
+; RUN: llc -mtriple=arm-eabi %s -o /dev/null
 ; PR2589
 
 define void @main({ i32 }*) {
index 601a516eb09a9e11e96debf35c19ed51422918b3..d16ad8cfbabf08335757470f58ff389a8d02edac 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm -mattr=+v6,+vfp2
+; RUN: llc -mtriple=arm-eabi -mattr=+v6,+vfp2 %s -o /dev/null
 
 define hidden i64 @__muldi3(i64 %u, i64 %v) nounwind {
 entry:
index a1ce384b5345242cece71d6c7f9e901f5a28c4d3..7bb1429872b9f4cbec2fbbc3a96a010afe18dbeb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm
+; RUN: llc -mtriple=arm-eabi %s -o /dev/null
 
        %struct.hit_t = type { %struct.v_t, double }
        %struct.node_t = type { %struct.hit_t, %struct.hit_t, i32 }
index a8ea6f007c7f72c3ddce98309a63c4cbe5654b03..e90c5b322db746805a7bd8c13a5422c455b40c2d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm -no-integrated-as | grep "swi 107"
+; RUN: llc -mtriple=arm-eabi -no-integrated-as %s -o - | FileCheck %s
 
 define i32 @_swilseek(i32) nounwind {
 entry:
@@ -18,3 +18,6 @@ return:               ; preds = %entry
        %4 = load i32* %retval          ; <i32> [#uses=1]
        ret i32 %4
 }
+
+; CHECK: swi 107
+
index f6b3d2c0147b6c80d1e2b91d244d9b333921e9cf..ade6a10afef6dc693df53ce074479d5e53ae1840 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm
+; RUN: llc -mtriple=arm-eabi %s -o /dev/null
 ; PR3795
 
 define fastcc void @_D3foo3fooFAriZv({ i32, { double, double }* } %d_arg, i32 %x_arg) {
index 99907fc697bd09feae40a745ae287b002fb97d40..606c6b1471b4b02ba6c448eb1544fa2e57e5afe5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm
+; RUN: llc -mtriple=arm-eabi %s -o /dev/null
 
 declare i32 @printf(i8*, ...)
 
index 05d2f26be0b7ae196b37aee2a33c3a80da2e94f7..9e32e05b040bc3d794b68a4a06c7f7d2e9a78b5c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm
+; RUN: llc -mtriple=arm-eabi %s -o /dev/null
 
 define void @execute_shader(<4 x float>* %OUT, <4 x float>* %IN, <4 x float>* %CONST) {
 entry:
index deb092bbf86e2f62f9d79c61648cf22b83d39723..5b1746301f4e1b9d45cfc333bcbe855dd0b7a9e3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm
+; RUN: llc -mtriple=arm-eabi %s -o /dev/null
 ; PR3954
 
 define void @foo(...) nounwind {
index 7046fccb5ee9b47459fb89e2fa0688fbf7b2bf07..2bc7df028534f5f1fc78b5a963708f6d8e58cab6 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llc < %s -march=arm
+; RUN: llc -mtriple=arm-eabi %s -o /dev/null
+
        %struct.List = type { %struct.List*, i32 }
 @Node5 = external constant %struct.List                ; <%struct.List*> [#uses=1]
 @"\01LC" = external constant [7 x i8]          ; <[7 x i8]*> [#uses=1]
index 1e2707f7b5bba50a0259d0bcaac3f60e5474a83b..5d59fc64d92220a4cf40fd1d7eccb712527da2dd 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc < %s -march=arm | FileCheck %s
-; RUN: llc < %s -march=thumb | FileCheck %s
+; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
+; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s
 ; PR4091
 
 define void @foo(i32 %i, i32* %p) nounwind {
index e1e94b64121493cdbf1efde5746b3e8c1084485f..3cef0aa546a5a4e6bb09e56c8a396900e6c6440a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm -mattr=+v6
+; RUN: llc -mtriple=arm-eabi -mattr=+v6 %s -o /dev/null
 
 define void @test(i8* %x) nounwind {
 entry:
index 67616877beb2ca4b6a1efb4732b44b4c757344ff..bc4a95c3e00b3c9e1763b9d769efe7fba5e5b6b4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm
+; RUN: llc -mtriple=arm-eabi %s -o /dev/null
 
        %struct.cli_ac_alt = type { i8, i8*, i16, i16, %struct.cli_ac_alt* }
        %struct.cli_ac_node = type { i8, i8, %struct.cli_ac_patt*, %struct.cli_ac_node**, %struct.cli_ac_node* }
index ee99c70ff0e628ae6de91ca8aea8c29f3a8e16df..b078ec06dbb8de7915c082527a5c114230017886 100644 (file)
@@ -1,5 +1,6 @@
-; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
+; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - | FileCheck %s
 ; pr4843
+
 define <4 x i16> @v2regbug(<4 x i16>* %B) nounwind {
 ;CHECK-LABEL: v2regbug:
 ;CHECK: vzip.16
index 10653b51c146331c85abd6a169e2b1ebe168fe4e..66ffe6a1a0fbf69d1ba2756a488867207289a0ca 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=arm < %s | FileCheck %s
+; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
 ; Radar 7213850
 
 define i32 @test(i8* %d, i32 %x, i32 %y) nounwind {