diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-13 20:38:47 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-13 20:38:47 +0000 |
commit | b4dc0233c9f70e8cf946822811f233bb613a02e9 (patch) | |
tree | 6cb47482e15d250ae95e5c6c96abd2afb56f6fca /test/CodeGen/Thumb2 | |
parent | ae4e1a94e3fb7d1d2d0eec6eb7d04b74326c8453 (diff) | |
download | external_llvm-b4dc0233c9f70e8cf946822811f233bb613a02e9.zip external_llvm-b4dc0233c9f70e8cf946822811f233bb613a02e9.tar.gz external_llvm-b4dc0233c9f70e8cf946822811f233bb613a02e9.tar.bz2 |
Convert CodeGen/*/*.ll tests to use the new CHECK-LABEL for easier debugging. No functionality change and all tests pass after conversion.
This was done with the following sed invocation to catch label lines demarking function boundaries:
sed -i '' "s/^;\( *\)\([A-Z0-9_]*\):\( *\)test\([A-Za-z0-9_-]*\):\( *\)$/;\1\2-LABEL:\3test\4:\5/g" test/CodeGen/*/*.ll
which was written conservatively to avoid false positives rather than false negatives. I scanned through all the changes and everything looks correct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186258 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2')
-rw-r--r-- | test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/Thumb2/2013-03-06-vector-sext-operand-scalarize.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/Thumb2/large-stack.ll | 12 | ||||
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-pack.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-str_post.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-sxt-uxt.ll | 8 |
6 files changed, 17 insertions, 17 deletions
diff --git a/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll b/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll index c153092..c662620 100644 --- a/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll +++ b/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll @@ -2,7 +2,7 @@ target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32-n32" define i32 @test(i32 %n) nounwind { -; CHECK: test: +; CHECK-LABEL: test: ; CHECK-NOT: mov ; CHECK: return entry: @@ -30,7 +30,7 @@ return: ; preds = %bb, %entry } define i32 @test_dead_cycle(i32 %n) nounwind { -; CHECK: test_dead_cycle: +; CHECK-LABEL: test_dead_cycle: ; CHECK: blx ; CHECK-NOT: mov ; CHECK: blx diff --git a/test/CodeGen/Thumb2/2013-03-06-vector-sext-operand-scalarize.ll b/test/CodeGen/Thumb2/2013-03-06-vector-sext-operand-scalarize.ll index 203815f..974fade 100644 --- a/test/CodeGen/Thumb2/2013-03-06-vector-sext-operand-scalarize.ll +++ b/test/CodeGen/Thumb2/2013-03-06-vector-sext-operand-scalarize.ll @@ -3,7 +3,7 @@ ; Testing that these don't crash/assert. The loop vectorizer can end up ; with odd constructs like this. The code actually generated is incidental. define <1 x i64> @test_zext(i32 %a) nounwind { -; CHECK: test_zext: +; CHECK-LABEL: test_zext: %Cmp = icmp uge i32 %a, 42 %vec = insertelement <1 x i1> zeroinitializer, i1 %Cmp, i32 0 %Se = zext <1 x i1> %vec to <1 x i64> @@ -11,7 +11,7 @@ define <1 x i64> @test_zext(i32 %a) nounwind { } define <1 x i64> @test_sext(i32 %a) nounwind { -; CHECK: test_sext: +; CHECK-LABEL: test_sext: %Cmp = icmp uge i32 %a, 42 %vec = insertelement <1 x i1> zeroinitializer, i1 %Cmp, i32 0 %Se = sext <1 x i1> %vec to <1 x i64> diff --git a/test/CodeGen/Thumb2/large-stack.ll b/test/CodeGen/Thumb2/large-stack.ll index 68b5d1c..36f3ce2 100644 --- a/test/CodeGen/Thumb2/large-stack.ll +++ b/test/CodeGen/Thumb2/large-stack.ll @@ -2,19 +2,19 @@ ; RUN: llc < %s -march=thumb -mattr=+thumb2 -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=LINUX define void @test1() { -; DARWIN: test1: +; DARWIN-LABEL: test1: ; DARWIN: sub sp, #256 -; LINUX: test1: +; LINUX-LABEL: test1: ; LINUX: sub sp, #256 %tmp = alloca [ 64 x i32 ] , align 4 ret void } define void @test2() { -; DARWIN: test2: +; DARWIN-LABEL: test2: ; DARWIN: sub.w sp, sp, #4160 ; DARWIN: sub sp, #8 -; LINUX: test2: +; LINUX-LABEL: test2: ; LINUX: sub.w sp, sp, #4160 ; LINUX: sub sp, #8 %tmp = alloca [ 4168 x i8 ] , align 4 @@ -22,11 +22,11 @@ define void @test2() { } define i32 @test3() { -; DARWIN: test3: +; DARWIN-LABEL: test3: ; DARWIN: push {r4, r7, lr} ; DARWIN: sub.w sp, sp, #805306368 ; DARWIN: sub sp, #20 -; LINUX: test3: +; LINUX-LABEL: test3: ; LINUX: push.w {r4, r7, r11, lr} ; LINUX: sub.w sp, sp, #805306368 ; LINUX: sub sp, #16 diff --git a/test/CodeGen/Thumb2/thumb2-pack.ll b/test/CodeGen/Thumb2/thumb2-pack.ll index 5deae1b..1052dd2 100644 --- a/test/CodeGen/Thumb2/thumb2-pack.ll +++ b/test/CodeGen/Thumb2/thumb2-pack.ll @@ -99,7 +99,7 @@ define i32 @test8(i32 %X, i32 %Y) { ret i32 %tmp57 } -; CHECK: test9: +; CHECK-LABEL: test9: ; CHECK: pkhtb r0, r0, r1, asr #16 define i32 @test9(i32 %src1, i32 %src2) { entry: diff --git a/test/CodeGen/Thumb2/thumb2-str_post.ll b/test/CodeGen/Thumb2/thumb2-str_post.ll index bbfb447..2133d28 100644 --- a/test/CodeGen/Thumb2/thumb2-str_post.ll +++ b/test/CodeGen/Thumb2/thumb2-str_post.ll @@ -1,7 +1,7 @@ ; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s define i16 @test1(i32* %X, i16* %A) { -; CHECK: test1: +; CHECK-LABEL: test1: ; CHECK: strh {{.*}}[{{.*}}], #-4 %Y = load i32* %X ; <i32> [#uses=1] %tmp1 = trunc i32 %Y to i16 ; <i16> [#uses=1] @@ -12,7 +12,7 @@ define i16 @test1(i32* %X, i16* %A) { } define i32 @test2(i32* %X, i32* %A) { -; CHECK: test2: +; CHECK-LABEL: test2: ; CHECK: str {{.*}}[{{.*}}], %Y = load i32* %X ; <i32> [#uses=1] store i32 %Y, i32* %A diff --git a/test/CodeGen/Thumb2/thumb2-sxt-uxt.ll b/test/CodeGen/Thumb2/thumb2-sxt-uxt.ll index ab888e6..792ebef 100644 --- a/test/CodeGen/Thumb2/thumb2-sxt-uxt.ll +++ b/test/CodeGen/Thumb2/thumb2-sxt-uxt.ll @@ -1,28 +1,28 @@ ; RUN: llc < %s -march=thumb -mcpu=cortex-m3 | FileCheck %s define i32 @test1(i16 zeroext %z) nounwind { -; CHECK: test1: +; CHECK-LABEL: test1: ; CHECK: sxth %r = sext i16 %z to i32 ret i32 %r } define i32 @test2(i8 zeroext %z) nounwind { -; CHECK: test2: +; CHECK-LABEL: test2: ; CHECK: sxtb %r = sext i8 %z to i32 ret i32 %r } define i32 @test3(i16 signext %z) nounwind { -; CHECK: test3: +; CHECK-LABEL: test3: ; CHECK: uxth %r = zext i16 %z to i32 ret i32 %r } define i32 @test4(i8 signext %z) nounwind { -; CHECK: test4: +; CHECK-LABEL: test4: ; CHECK: uxtb %r = zext i8 %z to i32 ret i32 %r |