diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-03 23:47:24 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-03 23:47:24 +0000 |
| commit | 905b6d192cadd43401964f4ff05534a65b007cf2 (patch) | |
| tree | c2dfdb7b3d316ca5aadfb553cf9f1fb7491f8c7d /llvm/test/CodeGen/Thumb | |
| parent | b8bd4a5e2a98ef22fe98375f7f339d16920c6e77 (diff) | |
| download | bcm5719-llvm-905b6d192cadd43401964f4ff05534a65b007cf2.tar.gz bcm5719-llvm-905b6d192cadd43401964f4ff05534a65b007cf2.zip | |
ARM: yet another round of ARM test clean ups
llvm-svn: 205586
Diffstat (limited to 'llvm/test/CodeGen/Thumb')
22 files changed, 72 insertions, 37 deletions
diff --git a/llvm/test/CodeGen/Thumb/2009-06-18-ThumbCommuteMul.ll b/llvm/test/CodeGen/Thumb/2009-06-18-ThumbCommuteMul.ll index 5c883b3930d..ca6df7cdab3 100644 --- a/llvm/test/CodeGen/Thumb/2009-06-18-ThumbCommuteMul.ll +++ b/llvm/test/CodeGen/Thumb/2009-06-18-ThumbCommuteMul.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb | grep r0 | count 1 +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s define i32 @a(i32 %x, i32 %y) nounwind readnone { entry: @@ -6,3 +6,5 @@ entry: ret i32 %mul } +; CHECK: r0 + diff --git a/llvm/test/CodeGen/Thumb/2010-06-18-SibCallCrash.ll b/llvm/test/CodeGen/Thumb/2010-06-18-SibCallCrash.ll index ad8b064bf4b..e1efd3b7238 100644 --- a/llvm/test/CodeGen/Thumb/2010-06-18-SibCallCrash.ll +++ b/llvm/test/CodeGen/Thumb/2010-06-18-SibCallCrash.ll @@ -1,4 +1,4 @@ -; RUN: llc -march=thumb < %s +; RUN: llc -mtriple=thumb-eabi %s -o /dev/null ; rdar://8104457 define arm_apcscc void @t(i32* %m) nounwind { diff --git a/llvm/test/CodeGen/Thumb/DbgValueOtherTargets.test b/llvm/test/CodeGen/Thumb/DbgValueOtherTargets.test index afb18a43be4..557892b0623 100644 --- a/llvm/test/CodeGen/Thumb/DbgValueOtherTargets.test +++ b/llvm/test/CodeGen/Thumb/DbgValueOtherTargets.test @@ -1 +1 @@ -RUN: llc -O0 -march=thumb -asm-verbose < %S/../Inputs/DbgValueOtherTargets.ll | FileCheck %S/../Inputs/DbgValueOtherTargets.ll +RUN: llc -O0 -mtriple=thumb-eabi -asm-verbose %S/../Inputs/DbgValueOtherTargets.ll -o - | FileCheck %S/../Inputs/DbgValueOtherTargets.ll diff --git a/llvm/test/CodeGen/Thumb/barrier.ll b/llvm/test/CodeGen/Thumb/barrier.ll index 1c27fa09884..92d9bb2097f 100644 --- a/llvm/test/CodeGen/Thumb/barrier.ll +++ b/llvm/test/CodeGen/Thumb/barrier.ll @@ -1,6 +1,6 @@ -; RUN: llc < %s -mtriple=thumbv6-apple-darwin | FileCheck %s -check-prefix=V6 -; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mattr=-db | FileCheck %s -check-prefix=V6 -; RUN: llc < %s -march=thumb -mcpu=cortex-m0 | FileCheck %s -check-prefix=V6M +; RUN: llc -mtriple=thumbv6-apple-darwin %s -o - | FileCheck %s -check-prefix=V6 +; RUN: llc -mtriple=thumbv7-apple-darwin -mattr=-db %s -o - | FileCheck %s -check-prefix=V6 +; RUN: llc -mtriple=thumb-eabi -mcpu=cortex-m0 %s -o - | FileCheck %s -check-prefix=V6M define void @t1() { ; V6-LABEL: t1: diff --git a/llvm/test/CodeGen/Thumb/fpconv.ll b/llvm/test/CodeGen/Thumb/fpconv.ll index 7da36ddf58e..0ade798d147 100644 --- a/llvm/test/CodeGen/Thumb/fpconv.ll +++ b/llvm/test/CodeGen/Thumb/fpconv.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb +; RUN: llc -mtriple=thumb-eabi %s -o /dev/null define float @f1(double %x) { entry: diff --git a/llvm/test/CodeGen/Thumb/fpow.ll b/llvm/test/CodeGen/Thumb/fpow.ll index be3dc0b3c1f..18b1c91098f 100644 --- a/llvm/test/CodeGen/Thumb/fpow.ll +++ b/llvm/test/CodeGen/Thumb/fpow.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb +; RUN: llc -mtriple=thumb-eabi %s -o /dev/null define double @t(double %x, double %y) nounwind optsize { entry: diff --git a/llvm/test/CodeGen/Thumb/inlineasm-imm-thumb.ll b/llvm/test/CodeGen/Thumb/inlineasm-imm-thumb.ll index d557b9d5a1f..4e4f8fad25f 100644 --- a/llvm/test/CodeGen/Thumb/inlineasm-imm-thumb.ll +++ b/llvm/test/CodeGen/Thumb/inlineasm-imm-thumb.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb -no-integrated-as +; RUN: llc -mtriple=thumb-eabi -no-integrated-as %s -o /dev/null ; Test Thumb-mode "I" constraint, for ADD immediate. define i32 @testI(i32 %x) { diff --git a/llvm/test/CodeGen/Thumb/inlineasm-thumb.ll b/llvm/test/CodeGen/Thumb/inlineasm-thumb.ll index f2683c8dd8c..2547ce8d6be 100644 --- a/llvm/test/CodeGen/Thumb/inlineasm-thumb.ll +++ b/llvm/test/CodeGen/Thumb/inlineasm-thumb.ll @@ -1,4 +1,5 @@ -; RUN: llc < %s -march=thumb | FileCheck %s +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s + define i32 @t1(i32 %x, i32 %y) nounwind { entry: ; CHECK: mov r0, r12 diff --git a/llvm/test/CodeGen/Thumb/ispositive.ll b/llvm/test/CodeGen/Thumb/ispositive.ll index 7b282270774..8d396878932 100644 --- a/llvm/test/CodeGen/Thumb/ispositive.ll +++ b/llvm/test/CodeGen/Thumb/ispositive.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb | FileCheck %s +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s define i32 @test1(i32 %X) { entry: diff --git a/llvm/test/CodeGen/Thumb/ldr_ext.ll b/llvm/test/CodeGen/Thumb/ldr_ext.ll index 9a28124b84c..2d25af35b51 100644 --- a/llvm/test/CodeGen/Thumb/ldr_ext.ll +++ b/llvm/test/CodeGen/Thumb/ldr_ext.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -march=thumb | FileCheck %s -check-prefix=V5 -; RUN: llc < %s -march=thumb -mattr=+v6 | FileCheck %s -check-prefix=V6 +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s -check-prefix=V5 +; RUN: llc -mtriple=thumb-eabi -mattr=+v6 %s -o - | FileCheck %s -check-prefix=V6 ; rdar://7176514 diff --git a/llvm/test/CodeGen/Thumb/ldr_frame.ll b/llvm/test/CodeGen/Thumb/ldr_frame.ll index 6c586385b1b..0e879d7379a 100644 --- a/llvm/test/CodeGen/Thumb/ldr_frame.ll +++ b/llvm/test/CodeGen/Thumb/ldr_frame.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb | FileCheck %s +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s define i32 @f1() { ; CHECK-LABEL: f1: diff --git a/llvm/test/CodeGen/Thumb/long-setcc.ll b/llvm/test/CodeGen/Thumb/long-setcc.ll index 8f2d98fc43c..3460edb96f0 100644 --- a/llvm/test/CodeGen/Thumb/long-setcc.ll +++ b/llvm/test/CodeGen/Thumb/long-setcc.ll @@ -1,5 +1,4 @@ -; RUN: llc < %s -march=thumb | grep cmp | count 1 - +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s define i1 @t1(i64 %x) { %B = icmp slt i64 %x, 0 @@ -15,3 +14,9 @@ define i1 @t3(i32 %x) { %tmp = icmp ugt i32 %x, -1 ret i1 %tmp } + +; CHECK: cmp +; CHECK-NOT: cmp + + + diff --git a/llvm/test/CodeGen/Thumb/long.ll b/llvm/test/CodeGen/Thumb/long.ll index 197e19e31b4..2449e5ad677 100644 --- a/llvm/test/CodeGen/Thumb/long.ll +++ b/llvm/test/CodeGen/Thumb/long.ll @@ -1,10 +1,5 @@ -; RUN: llc < %s -march=thumb | \ -; RUN: grep mvn | count 1 -; RUN: llc < %s -march=thumb | \ -; RUN: grep adc | count 1 -; RUN: llc < %s -march=thumb | \ -; RUN: grep sbc | count 1 -; RUN: llc < %s -mtriple=thumb-apple-darwin | grep __muldi3 +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s +; RUN: llc -mtriple=thumb-apple-darwin %s -o - | FileCheck %s -check-prefix CHECK-DARWIN define i64 @f1() { entry: @@ -74,3 +69,14 @@ entry: ret i64 %retval } +; CHECK: mvn +; CHECK-NOT: mvn + +; CHECK: adc +; CHECK-NOT: adc + +; CHECK: sbc +; CHECK-NOT: sbc + +; CHECK-DARWIN: __muldi3 + diff --git a/llvm/test/CodeGen/Thumb/long_shift.ll b/llvm/test/CodeGen/Thumb/long_shift.ll index 24317141fca..6aa1afd3898 100644 --- a/llvm/test/CodeGen/Thumb/long_shift.ll +++ b/llvm/test/CodeGen/Thumb/long_shift.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb +; RUN: llc -mtriple=thumb-eabi %s -o /dev/null define i64 @f0(i64 %A, i64 %B) { %tmp = bitcast i64 %A to i64 diff --git a/llvm/test/CodeGen/Thumb/mul.ll b/llvm/test/CodeGen/Thumb/mul.ll index c1a2fb29477..13a2cfb4c24 100644 --- a/llvm/test/CodeGen/Thumb/mul.ll +++ b/llvm/test/CodeGen/Thumb/mul.ll @@ -1,22 +1,32 @@ -; RUN: llc < %s -march=thumb | grep mul | count 3 -; RUN: llc < %s -march=thumb | grep lsl | count 1 +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s define i32 @f1(i32 %u) { %tmp = mul i32 %u, %u ret i32 %tmp } +; CHECK: mul{{s?}} + define i32 @f2(i32 %u, i32 %v) { %tmp = mul i32 %u, %v ret i32 %tmp } +; CHECK: mul{{s?}} + define i32 @f3(i32 %u) { %tmp = mul i32 %u, 5 ret i32 %tmp } +; CHECK: mul{{s?}} + define i32 @f4(i32 %u) { %tmp = mul i32 %u, 4 ret i32 %tmp } + +; CHECK: lsl +; CHECK-NOT: mul{{s?}} +; CHECK-NOT: lsl + diff --git a/llvm/test/CodeGen/Thumb/rev.ll b/llvm/test/CodeGen/Thumb/rev.ll index dcba00e4966..3e947022e60 100644 --- a/llvm/test/CodeGen/Thumb/rev.ll +++ b/llvm/test/CodeGen/Thumb/rev.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb -mattr=+v6 | FileCheck %s +; RUN: llc -mtriple=thumb-eabi -mattr=+v6 %s -o - | FileCheck %s define i32 @test1(i32 %X) nounwind { ; CHECK: test1 diff --git a/llvm/test/CodeGen/Thumb/stack-coloring-without-frame-ptr.ll b/llvm/test/CodeGen/Thumb/stack-coloring-without-frame-ptr.ll index 3f6407a0a3c..97c66d9dc86 100644 --- a/llvm/test/CodeGen/Thumb/stack-coloring-without-frame-ptr.ll +++ b/llvm/test/CodeGen/Thumb/stack-coloring-without-frame-ptr.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb -mcpu=arm1022e +; RUN: llc -mtriple=thumb-eabi -mcpu=arm1022e %s -o /dev/null %iterator = type { i8**, i8**, i8**, i8*** } %insert_iterator = type { %deque*, %iterator } diff --git a/llvm/test/CodeGen/Thumb/stack-frame.ll b/llvm/test/CodeGen/Thumb/stack-frame.ll index b103b331b79..fda7267016d 100644 --- a/llvm/test/CodeGen/Thumb/stack-frame.ll +++ b/llvm/test/CodeGen/Thumb/stack-frame.ll @@ -1,5 +1,4 @@ -; RUN: llc < %s -march=thumb -; RUN: llc < %s -march=thumb | grep add | count 1 +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s define void @f1() { %c = alloca i8, align 1 @@ -10,4 +9,6 @@ define i32 @f2() { ret i32 1 } +; CHECK: add +; CHECK-NOT: add diff --git a/llvm/test/CodeGen/Thumb/thumb-imm.ll b/llvm/test/CodeGen/Thumb/thumb-imm.ll index 74a57ff271b..592e694e027 100644 --- a/llvm/test/CodeGen/Thumb/thumb-imm.ll +++ b/llvm/test/CodeGen/Thumb/thumb-imm.ll @@ -1,5 +1,4 @@ -; RUN: llc < %s -march=thumb | not grep CPI - +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s define i32 @test1() { ret i32 1000 @@ -8,3 +7,6 @@ define i32 @test1() { define i32 @test2() { ret i32 -256 } + +; CHECK-NOT: CPI + diff --git a/llvm/test/CodeGen/Thumb/trap.ll b/llvm/test/CodeGen/Thumb/trap.ll index e04059c4b02..7d2f6f11a4d 100644 --- a/llvm/test/CodeGen/Thumb/trap.ll +++ b/llvm/test/CodeGen/Thumb/trap.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb | FileCheck %s +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s ; rdar://7961298 define void @t() nounwind { diff --git a/llvm/test/CodeGen/Thumb/tst_teq.ll b/llvm/test/CodeGen/Thumb/tst_teq.ll index 21ada3ed83a..2b6d9a3706a 100644 --- a/llvm/test/CodeGen/Thumb/tst_teq.ll +++ b/llvm/test/CodeGen/Thumb/tst_teq.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=thumb | grep tst +; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s define i32 @f(i32 %a) { entry: @@ -15,3 +15,6 @@ entry: %retval = select i1 %0, i32 20, i32 10 ; <i32> [#uses=1] ret i32 %retval } + +; CHECK: tst + diff --git a/llvm/test/CodeGen/Thumb/vargs.ll b/llvm/test/CodeGen/Thumb/vargs.ll index 50a1a072884..4078b01ba30 100644 --- a/llvm/test/CodeGen/Thumb/vargs.ll +++ b/llvm/test/CodeGen/Thumb/vargs.ll @@ -1,6 +1,6 @@ -; RUN: llc < %s -march=thumb -; RUN: llc < %s -mtriple=thumb-linux | grep pop | count 2 -; RUN: llc < %s -mtriple=thumb-darwin | grep pop | count 2 +; RUN: llc -mtriple=thumb-eabi %s -o /dev/null +; RUN: llc -mtriple=thumb-linux %s -o - | FileCheck %s +; RUN: llc -mtriple=thumb-darwin %s -o - | FileCheck %s @str = internal constant [4 x i8] c"%d\0A\00" ; <[4 x i8]*> [#uses=1] @@ -34,3 +34,8 @@ declare void @llvm.va_start(i8*) declare i32 @printf(i8*, ...) declare void @llvm.va_end(i8*) + +; CHECK: pop +; CHECK: pop +; CHECK-NOT: pop + |

