diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 06:24:09 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 06:24:09 +0000 |
commit | 8b2b8a18354546d534b72f912153a3252ab4b857 (patch) | |
tree | 9e745a19e157915db1f88e171514f4d22041c62a /test/CodeGen/Thumb | |
parent | 6611eaa32f7941dd50a3ffe608f3f4a7665dbe91 (diff) | |
download | llvm-8b2b8a18354546d534b72f912153a3252ab4b857.tar.gz llvm-8b2b8a18354546d534b72f912153a3252ab4b857.tar.bz2 llvm-8b2b8a18354546d534b72f912153a3252ab4b857.tar.xz |
Mass update to CodeGen tests to use CHECK-LABEL for labels corresponding to function definitions for more informative error messages. No functionality change and all updated tests passed locally.
This update was done with the following bash script:
find test/CodeGen -name "*.ll" | \
while read NAME; do
echo "$NAME"
if ! grep -q "^; *RUN: *llc.*debug" $NAME; then
TEMP=`mktemp -t temp`
cp $NAME $TEMP
sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \
while read FUNC; do
sed -i '' "s/;\(.*\)\([A-Za-z0-9_-]*\):\( *\)$FUNC: *\$/;\1\2-LABEL:\3$FUNC:/g" $TEMP
done
sed -i '' "s/;\(.*\)-LABEL-LABEL:/;\1-LABEL:/" $TEMP
sed -i '' "s/;\(.*\)-NEXT-LABEL:/;\1-NEXT:/" $TEMP
sed -i '' "s/;\(.*\)-NOT-LABEL:/;\1-NOT:/" $TEMP
sed -i '' "s/;\(.*\)-DAG-LABEL:/;\1-DAG:/" $TEMP
mv $TEMP $NAME
fi
done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb')
-rw-r--r-- | test/CodeGen/Thumb/2009-08-20-ISelBug.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/Thumb/2012-04-26-M0ISelBug.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/Thumb/barrier.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/Thumb/dyn-stackalloc.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/Thumb/ldr_frame.ll | 8 | ||||
-rw-r--r-- | test/CodeGen/Thumb/pop.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/Thumb/push.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/Thumb/select.ll | 28 | ||||
-rw-r--r-- | test/CodeGen/Thumb/trap.ll | 2 |
9 files changed, 27 insertions, 27 deletions
diff --git a/test/CodeGen/Thumb/2009-08-20-ISelBug.ll b/test/CodeGen/Thumb/2009-08-20-ISelBug.ll index 787655779d..414b76d750 100644 --- a/test/CodeGen/Thumb/2009-08-20-ISelBug.ll +++ b/test/CodeGen/Thumb/2009-08-20-ISelBug.ll @@ -10,7 +10,7 @@ @llvm.used = appending global [1 x i8*] [i8* bitcast (i32 (%struct.asl_file_t*, i64, i64*)* @t to i8*)], section "llvm.metadata" ; <[1 x i8*]*> [#uses=0] define i32 @t(%struct.asl_file_t* %s, i64 %off, i64* %out) nounwind optsize { -; CHECK: t: +; CHECK-LABEL: t: ; CHECK: adds {{r[0-7]}}, #8 entry: %val = alloca i64, align 4 ; <i64*> [#uses=3] diff --git a/test/CodeGen/Thumb/2012-04-26-M0ISelBug.ll b/test/CodeGen/Thumb/2012-04-26-M0ISelBug.ll index a4c05d2492..b39978b9d4 100644 --- a/test/CodeGen/Thumb/2012-04-26-M0ISelBug.ll +++ b/test/CodeGen/Thumb/2012-04-26-M0ISelBug.ll @@ -3,7 +3,7 @@ ; rdar://11331541 define i32 @t(i32 %a) nounwind { -; CHECK: t: +; CHECK-LABEL: t: ; CHECK: asrs [[REG1:(r[0-9]+)]], [[REG2:(r[0-9]+)]], #31 ; CHECK: eors [[REG1]], [[REG2]] %tmp0 = ashr i32 %a, 31 diff --git a/test/CodeGen/Thumb/barrier.ll b/test/CodeGen/Thumb/barrier.ll index 50d138fe44..8fca273cc2 100644 --- a/test/CodeGen/Thumb/barrier.ll +++ b/test/CodeGen/Thumb/barrier.ll @@ -3,10 +3,10 @@ ; RUN: llc < %s -march=thumb -mcpu=cortex-m0 | FileCheck %s -check-prefix=V6M define void @t1() { -; V6: t1: +; V6-LABEL: t1: ; V6: blx {{_*}}sync_synchronize -; V6M: t1: +; V6M-LABEL: t1: ; V6M: dmb ish fence seq_cst ret void diff --git a/test/CodeGen/Thumb/dyn-stackalloc.ll b/test/CodeGen/Thumb/dyn-stackalloc.ll index f3f08347ae..6c6de55347 100644 --- a/test/CodeGen/Thumb/dyn-stackalloc.ll +++ b/test/CodeGen/Thumb/dyn-stackalloc.ll @@ -5,7 +5,7 @@ %struct.info = type { i32, i32, i32, i32, i32, i32, i32, i8* } define void @t1(%struct.state* %v) { -; CHECK: t1: +; CHECK-LABEL: t1: ; CHECK: push ; CHECK: add r7, sp, #12 ; CHECK: lsls r[[R0:[0-9]+]] @@ -39,7 +39,7 @@ declare fastcc void @f2(float*, float*, float*, i32) @str215 = external global [2 x i8] define void @t2(%struct.comment* %vc, i8* %tag, i8* %contents) { -; CHECK: t2: +; CHECK-LABEL: t2: ; CHECK: push ; CHECK: add r7, sp, #12 ; CHECK: sub sp, # diff --git a/test/CodeGen/Thumb/ldr_frame.ll b/test/CodeGen/Thumb/ldr_frame.ll index 81782cda4a..6c586385b1 100644 --- a/test/CodeGen/Thumb/ldr_frame.ll +++ b/test/CodeGen/Thumb/ldr_frame.ll @@ -1,7 +1,7 @@ ; RUN: llc < %s -march=thumb | FileCheck %s define i32 @f1() { -; CHECK: f1: +; CHECK-LABEL: f1: ; CHECK: ldr r0 %buf = alloca [32 x i32], align 4 %tmp = getelementptr [32 x i32]* %buf, i32 0, i32 0 @@ -10,7 +10,7 @@ define i32 @f1() { } define i32 @f2() { -; CHECK: f2: +; CHECK-LABEL: f2: ; CHECK: mov r0 ; CHECK: ldrb %buf = alloca [32 x i8], align 4 @@ -21,7 +21,7 @@ define i32 @f2() { } define i32 @f3() { -; CHECK: f3: +; CHECK-LABEL: f3: ; CHECK: ldr r0 %buf = alloca [32 x i32], align 4 %tmp = getelementptr [32 x i32]* %buf, i32 0, i32 32 @@ -30,7 +30,7 @@ define i32 @f3() { } define i32 @f4() { -; CHECK: f4: +; CHECK-LABEL: f4: ; CHECK: mov r0 ; CHECK: ldrb %buf = alloca [32 x i8], align 4 diff --git a/test/CodeGen/Thumb/pop.ll b/test/CodeGen/Thumb/pop.ll index 63f2feb765..1e45c7f37b 100644 --- a/test/CodeGen/Thumb/pop.ll +++ b/test/CodeGen/Thumb/pop.ll @@ -2,7 +2,7 @@ ; rdar://7268481 define void @t(i8* %a, ...) nounwind { -; CHECK: t: +; CHECK-LABEL: t: ; CHECK: pop {r3} ; CHECK-NEXT: add sp, #12 ; CHECK-NEXT: bx r3 diff --git a/test/CodeGen/Thumb/push.ll b/test/CodeGen/Thumb/push.ll index 94ef8e9004..62229c6dad 100644 --- a/test/CodeGen/Thumb/push.ll +++ b/test/CodeGen/Thumb/push.ll @@ -2,7 +2,7 @@ ; rdar://7268481 define void @t() nounwind { -; CHECK: t: +; CHECK-LABEL: t: ; CHECK: push {r7} entry: call void asm sideeffect alignstack ".long 0xe7ffdefe", ""() nounwind diff --git a/test/CodeGen/Thumb/select.ll b/test/CodeGen/Thumb/select.ll index 3f10b0573b..fe69a39e35 100644 --- a/test/CodeGen/Thumb/select.ll +++ b/test/CodeGen/Thumb/select.ll @@ -7,9 +7,9 @@ entry: %tmp1.s = select i1 %tmp, i32 2, i32 3 ret i32 %tmp1.s } -; CHECK: f1: +; CHECK-LABEL: f1: ; CHECK: beq -; CHECK-EABI: f1: +; CHECK-EABI-LABEL: f1: ; CHECK-EABI: beq define i32 @f2(i32 %a.s) { @@ -18,9 +18,9 @@ entry: %tmp1.s = select i1 %tmp, i32 2, i32 3 ret i32 %tmp1.s } -; CHECK: f2: +; CHECK-LABEL: f2: ; CHECK: bgt -; CHECK-EABI: f2: +; CHECK-EABI-LABEL: f2: ; CHECK-EABI: bgt define i32 @f3(i32 %a.s, i32 %b.s) { @@ -29,9 +29,9 @@ entry: %tmp1.s = select i1 %tmp, i32 2, i32 3 ret i32 %tmp1.s } -; CHECK: f3: +; CHECK-LABEL: f3: ; CHECK: blt -; CHECK-EABI: f3: +; CHECK-EABI-LABEL: f3: ; CHECK-EABI: blt define i32 @f4(i32 %a.s, i32 %b.s) { @@ -40,9 +40,9 @@ entry: %tmp1.s = select i1 %tmp, i32 2, i32 3 ret i32 %tmp1.s } -; CHECK: f4: +; CHECK-LABEL: f4: ; CHECK: ble -; CHECK-EABI: f4: +; CHECK-EABI-LABEL: f4: ; CHECK-EABI: ble define i32 @f5(i32 %a.u, i32 %b.u) { @@ -51,9 +51,9 @@ entry: %tmp1.s = select i1 %tmp, i32 2, i32 3 ret i32 %tmp1.s } -; CHECK: f5: +; CHECK-LABEL: f5: ; CHECK: bls -; CHECK-EABI: f5: +; CHECK-EABI-LABEL: f5: ; CHECK-EABI: bls define i32 @f6(i32 %a.u, i32 %b.u) { @@ -62,9 +62,9 @@ entry: %tmp1.s = select i1 %tmp, i32 2, i32 3 ret i32 %tmp1.s } -; CHECK: f6: +; CHECK-LABEL: f6: ; CHECK: bhi -; CHECK-EABI: f6: +; CHECK-EABI-LABEL: f6: ; CHECK-EABI: bhi define double @f7(double %a, double %b) { @@ -72,11 +72,11 @@ define double @f7(double %a, double %b) { %tmp1 = select i1 %tmp, double -1.000e+00, double %b ret double %tmp1 } -; CHECK: f7: +; CHECK-LABEL: f7: ; CHECK: blt ; CHECK: blt ; CHECK: __ltdf2 -; CHECK-EABI: f7: +; CHECK-EABI-LABEL: f7: ; CHECK-EABI: __aeabi_dcmplt ; CHECK-EABI: bne ; CHECK-EABI: bne diff --git a/test/CodeGen/Thumb/trap.ll b/test/CodeGen/Thumb/trap.ll index 04cd3eed0f..e04059c4b0 100644 --- a/test/CodeGen/Thumb/trap.ll +++ b/test/CodeGen/Thumb/trap.ll @@ -3,7 +3,7 @@ define void @t() nounwind { entry: -; CHECK: t: +; CHECK-LABEL: t: ; CHECK: trap call void @llvm.trap() unreachable |