From 8b2b8a18354546d534b72f912153a3252ab4b857 Mon Sep 17 00:00:00 2001 From: Stephen Lin Date: Sun, 14 Jul 2013 06:24:09 +0000 Subject: 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 --- test/CodeGen/X86/bmi.ll | 66 ++++++++++++++++++++++++------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'test/CodeGen/X86/bmi.ll') diff --git a/test/CodeGen/X86/bmi.ll b/test/CodeGen/X86/bmi.ll index b89e648c52..4eda8888b6 100644 --- a/test/CodeGen/X86/bmi.ll +++ b/test/CodeGen/X86/bmi.ll @@ -8,21 +8,21 @@ declare i64 @llvm.cttz.i64(i64, i1) nounwind readnone define i8 @t1(i8 %x) nounwind { %tmp = tail call i8 @llvm.cttz.i8( i8 %x, i1 false ) ret i8 %tmp -; CHECK: t1: +; CHECK-LABEL: t1: ; CHECK: tzcntl } define i16 @t2(i16 %x) nounwind { %tmp = tail call i16 @llvm.cttz.i16( i16 %x, i1 false ) ret i16 %tmp -; CHECK: t2: +; CHECK-LABEL: t2: ; CHECK: tzcntw } define i32 @t3(i32 %x) nounwind { %tmp = tail call i32 @llvm.cttz.i32( i32 %x, i1 false ) ret i32 %tmp -; CHECK: t3: +; CHECK-LABEL: t3: ; CHECK: tzcntl } @@ -30,42 +30,42 @@ define i32 @tzcnt32_load(i32* %x) nounwind { %x1 = load i32* %x %tmp = tail call i32 @llvm.cttz.i32(i32 %x1, i1 false ) ret i32 %tmp -; CHECK: tzcnt32_load: +; CHECK-LABEL: tzcnt32_load: ; CHECK: tzcntl ({{.*}}) } define i64 @t4(i64 %x) nounwind { %tmp = tail call i64 @llvm.cttz.i64( i64 %x, i1 false ) ret i64 %tmp -; CHECK: t4: +; CHECK-LABEL: t4: ; CHECK: tzcntq } define i8 @t5(i8 %x) nounwind { %tmp = tail call i8 @llvm.cttz.i8( i8 %x, i1 true ) ret i8 %tmp -; CHECK: t5: +; CHECK-LABEL: t5: ; CHECK: tzcntl } define i16 @t6(i16 %x) nounwind { %tmp = tail call i16 @llvm.cttz.i16( i16 %x, i1 true ) ret i16 %tmp -; CHECK: t6: +; CHECK-LABEL: t6: ; CHECK: tzcntw } define i32 @t7(i32 %x) nounwind { %tmp = tail call i32 @llvm.cttz.i32( i32 %x, i1 true ) ret i32 %tmp -; CHECK: t7: +; CHECK-LABEL: t7: ; CHECK: tzcntl } define i64 @t8(i64 %x) nounwind { %tmp = tail call i64 @llvm.cttz.i64( i64 %x, i1 true ) ret i64 %tmp -; CHECK: t8: +; CHECK-LABEL: t8: ; CHECK: tzcntq } @@ -73,7 +73,7 @@ define i32 @andn32(i32 %x, i32 %y) nounwind readnone { %tmp1 = xor i32 %x, -1 %tmp2 = and i32 %y, %tmp1 ret i32 %tmp2 -; CHECK: andn32: +; CHECK-LABEL: andn32: ; CHECK: andnl } @@ -82,7 +82,7 @@ define i32 @andn32_load(i32 %x, i32* %y) nounwind readnone { %tmp1 = xor i32 %x, -1 %tmp2 = and i32 %y1, %tmp1 ret i32 %tmp2 -; CHECK: andn32_load: +; CHECK-LABEL: andn32_load: ; CHECK: andnl ({{.*}}) } @@ -90,14 +90,14 @@ define i64 @andn64(i64 %x, i64 %y) nounwind readnone { %tmp1 = xor i64 %x, -1 %tmp2 = and i64 %tmp1, %y ret i64 %tmp2 -; CHECK: andn64: +; CHECK-LABEL: andn64: ; CHECK: andnq } define i32 @bextr32(i32 %x, i32 %y) nounwind readnone { %tmp = tail call i32 @llvm.x86.bmi.bextr.32(i32 %x, i32 %y) ret i32 %tmp -; CHECK: bextr32: +; CHECK-LABEL: bextr32: ; CHECK: bextrl } @@ -105,7 +105,7 @@ define i32 @bextr32_load(i32* %x, i32 %y) nounwind readnone { %x1 = load i32* %x %tmp = tail call i32 @llvm.x86.bmi.bextr.32(i32 %x1, i32 %y) ret i32 %tmp -; CHECK: bextr32_load: +; CHECK-LABEL: bextr32_load: ; CHECK: bextrl {{.*}}, ({{.*}}), {{.*}} } @@ -114,7 +114,7 @@ declare i32 @llvm.x86.bmi.bextr.32(i32, i32) nounwind readnone define i64 @bextr64(i64 %x, i64 %y) nounwind readnone { %tmp = tail call i64 @llvm.x86.bmi.bextr.64(i64 %x, i64 %y) ret i64 %tmp -; CHECK: bextr64: +; CHECK-LABEL: bextr64: ; CHECK: bextrq } @@ -123,7 +123,7 @@ declare i64 @llvm.x86.bmi.bextr.64(i64, i64) nounwind readnone define i32 @bzhi32(i32 %x, i32 %y) nounwind readnone { %tmp = tail call i32 @llvm.x86.bmi.bzhi.32(i32 %x, i32 %y) ret i32 %tmp -; CHECK: bzhi32: +; CHECK-LABEL: bzhi32: ; CHECK: bzhil } @@ -131,7 +131,7 @@ define i32 @bzhi32_load(i32* %x, i32 %y) nounwind readnone { %x1 = load i32* %x %tmp = tail call i32 @llvm.x86.bmi.bzhi.32(i32 %x1, i32 %y) ret i32 %tmp -; CHECK: bzhi32_load: +; CHECK-LABEL: bzhi32_load: ; CHECK: bzhil {{.*}}, ({{.*}}), {{.*}} } @@ -140,7 +140,7 @@ declare i32 @llvm.x86.bmi.bzhi.32(i32, i32) nounwind readnone define i64 @bzhi64(i64 %x, i64 %y) nounwind readnone { %tmp = tail call i64 @llvm.x86.bmi.bzhi.64(i64 %x, i64 %y) ret i64 %tmp -; CHECK: bzhi64: +; CHECK-LABEL: bzhi64: ; CHECK: bzhiq } @@ -150,7 +150,7 @@ define i32 @blsi32(i32 %x) nounwind readnone { %tmp = sub i32 0, %x %tmp2 = and i32 %x, %tmp ret i32 %tmp2 -; CHECK: blsi32: +; CHECK-LABEL: blsi32: ; CHECK: blsil } @@ -159,7 +159,7 @@ define i32 @blsi32_load(i32* %x) nounwind readnone { %tmp = sub i32 0, %x1 %tmp2 = and i32 %x1, %tmp ret i32 %tmp2 -; CHECK: blsi32_load: +; CHECK-LABEL: blsi32_load: ; CHECK: blsil ({{.*}}) } @@ -167,7 +167,7 @@ define i64 @blsi64(i64 %x) nounwind readnone { %tmp = sub i64 0, %x %tmp2 = and i64 %tmp, %x ret i64 %tmp2 -; CHECK: blsi64: +; CHECK-LABEL: blsi64: ; CHECK: blsiq } @@ -175,7 +175,7 @@ define i32 @blsmsk32(i32 %x) nounwind readnone { %tmp = sub i32 %x, 1 %tmp2 = xor i32 %x, %tmp ret i32 %tmp2 -; CHECK: blsmsk32: +; CHECK-LABEL: blsmsk32: ; CHECK: blsmskl } @@ -184,7 +184,7 @@ define i32 @blsmsk32_load(i32* %x) nounwind readnone { %tmp = sub i32 %x1, 1 %tmp2 = xor i32 %x1, %tmp ret i32 %tmp2 -; CHECK: blsmsk32_load: +; CHECK-LABEL: blsmsk32_load: ; CHECK: blsmskl ({{.*}}) } @@ -192,7 +192,7 @@ define i64 @blsmsk64(i64 %x) nounwind readnone { %tmp = sub i64 %x, 1 %tmp2 = xor i64 %tmp, %x ret i64 %tmp2 -; CHECK: blsmsk64: +; CHECK-LABEL: blsmsk64: ; CHECK: blsmskq } @@ -200,7 +200,7 @@ define i32 @blsr32(i32 %x) nounwind readnone { %tmp = sub i32 %x, 1 %tmp2 = and i32 %x, %tmp ret i32 %tmp2 -; CHECK: blsr32: +; CHECK-LABEL: blsr32: ; CHECK: blsrl } @@ -209,7 +209,7 @@ define i32 @blsr32_load(i32* %x) nounwind readnone { %tmp = sub i32 %x1, 1 %tmp2 = and i32 %x1, %tmp ret i32 %tmp2 -; CHECK: blsr32_load: +; CHECK-LABEL: blsr32_load: ; CHECK: blsrl ({{.*}}) } @@ -217,14 +217,14 @@ define i64 @blsr64(i64 %x) nounwind readnone { %tmp = sub i64 %x, 1 %tmp2 = and i64 %tmp, %x ret i64 %tmp2 -; CHECK: blsr64: +; CHECK-LABEL: blsr64: ; CHECK: blsrq } define i32 @pdep32(i32 %x, i32 %y) nounwind readnone { %tmp = tail call i32 @llvm.x86.bmi.pdep.32(i32 %x, i32 %y) ret i32 %tmp -; CHECK: pdep32: +; CHECK-LABEL: pdep32: ; CHECK: pdepl } @@ -232,7 +232,7 @@ define i32 @pdep32_load(i32 %x, i32* %y) nounwind readnone { %y1 = load i32* %y %tmp = tail call i32 @llvm.x86.bmi.pdep.32(i32 %x, i32 %y1) ret i32 %tmp -; CHECK: pdep32_load: +; CHECK-LABEL: pdep32_load: ; CHECK: pdepl ({{.*}}) } @@ -241,7 +241,7 @@ declare i32 @llvm.x86.bmi.pdep.32(i32, i32) nounwind readnone define i64 @pdep64(i64 %x, i64 %y) nounwind readnone { %tmp = tail call i64 @llvm.x86.bmi.pdep.64(i64 %x, i64 %y) ret i64 %tmp -; CHECK: pdep64: +; CHECK-LABEL: pdep64: ; CHECK: pdepq } @@ -250,7 +250,7 @@ declare i64 @llvm.x86.bmi.pdep.64(i64, i64) nounwind readnone define i32 @pext32(i32 %x, i32 %y) nounwind readnone { %tmp = tail call i32 @llvm.x86.bmi.pext.32(i32 %x, i32 %y) ret i32 %tmp -; CHECK: pext32: +; CHECK-LABEL: pext32: ; CHECK: pextl } @@ -258,7 +258,7 @@ define i32 @pext32_load(i32 %x, i32* %y) nounwind readnone { %y1 = load i32* %y %tmp = tail call i32 @llvm.x86.bmi.pext.32(i32 %x, i32 %y1) ret i32 %tmp -; CHECK: pext32_load: +; CHECK-LABEL: pext32_load: ; CHECK: pextl ({{.*}}) } @@ -267,7 +267,7 @@ declare i32 @llvm.x86.bmi.pext.32(i32, i32) nounwind readnone define i64 @pext64(i64 %x, i64 %y) nounwind readnone { %tmp = tail call i64 @llvm.x86.bmi.pext.64(i64 %x, i64 %y) ret i64 %tmp -; CHECK: pext64: +; CHECK-LABEL: pext64: ; CHECK: pextq } -- cgit v1.2.3