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/SystemZ/memset-04.ll | |
parent | 6611eaa32f7941dd50a3ffe608f3f4a7665dbe91 (diff) | |
download | external_llvm-8b2b8a18354546d534b72f912153a3252ab4b857.zip external_llvm-8b2b8a18354546d534b72f912153a3252ab4b857.tar.gz external_llvm-8b2b8a18354546d534b72f912153a3252ab4b857.tar.bz2 |
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/SystemZ/memset-04.ll')
-rw-r--r-- | test/CodeGen/SystemZ/memset-04.ll | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/test/CodeGen/SystemZ/memset-04.ll b/test/CodeGen/SystemZ/memset-04.ll index 679e21f..9288692 100644 --- a/test/CodeGen/SystemZ/memset-04.ll +++ b/test/CodeGen/SystemZ/memset-04.ll @@ -7,7 +7,7 @@ declare void @llvm.memset.p0i8.i64(i8 *nocapture, i8, i64, i32, i1) nounwind ; No bytes, i32 version. define void @f1(i8 *%dest) { -; CHECK: f1: +; CHECK-LABEL: f1: ; CHECK-NOT: %r2 ; CHECK: br %r14 call void @llvm.memset.p0i8.i32(i8 *%dest, i8 -1, i32 0, i32 1, i1 false) @@ -16,7 +16,7 @@ define void @f1(i8 *%dest) { ; No bytes, i64 version. define void @f2(i8 *%dest) { -; CHECK: f2: +; CHECK-LABEL: f2: ; CHECK-NOT: %r2 ; CHECK: br %r14 call void @llvm.memset.p0i8.i64(i8 *%dest, i8 -1, i64 0, i32 1, i1 false) @@ -25,7 +25,7 @@ define void @f2(i8 *%dest) { ; 1 byte, i32 version. define void @f3(i8 *%dest) { -; CHECK: f3: +; CHECK-LABEL: f3: ; CHECK: mvi 0(%r2), 255 ; CHECK: br %r14 call void @llvm.memset.p0i8.i32(i8 *%dest, i8 -1, i32 1, i32 1, i1 false) @@ -34,7 +34,7 @@ define void @f3(i8 *%dest) { ; 1 byte, i64 version. define void @f4(i8 *%dest) { -; CHECK: f4: +; CHECK-LABEL: f4: ; CHECK: mvi 0(%r2), 255 ; CHECK: br %r14 call void @llvm.memset.p0i8.i64(i8 *%dest, i8 -1, i64 1, i32 1, i1 false) @@ -43,7 +43,7 @@ define void @f4(i8 *%dest) { ; 2 bytes, i32 version. define void @f5(i8 *%dest) { -; CHECK: f5: +; CHECK-LABEL: f5: ; CHECK: mvhhi 0(%r2), -1 ; CHECK: br %r14 call void @llvm.memset.p0i8.i32(i8 *%dest, i8 -1, i32 2, i32 1, i1 false) @@ -52,7 +52,7 @@ define void @f5(i8 *%dest) { ; 2 bytes, i64 version. define void @f6(i8 *%dest) { -; CHECK: f6: +; CHECK-LABEL: f6: ; CHECK: mvhhi 0(%r2), -1 ; CHECK: br %r14 call void @llvm.memset.p0i8.i64(i8 *%dest, i8 -1, i64 2, i32 1, i1 false) @@ -61,7 +61,7 @@ define void @f6(i8 *%dest) { ; 3 bytes, i32 version. define void @f7(i8 *%dest) { -; CHECK: f7: +; CHECK-LABEL: f7: ; CHECK-DAG: mvhhi 0(%r2), -1 ; CHECK-DAG: mvi 2(%r2), 255 ; CHECK: br %r14 @@ -71,7 +71,7 @@ define void @f7(i8 *%dest) { ; 3 bytes, i64 version. define void @f8(i8 *%dest) { -; CHECK: f8: +; CHECK-LABEL: f8: ; CHECK-DAG: mvhhi 0(%r2), -1 ; CHECK-DAG: mvi 2(%r2), 255 ; CHECK: br %r14 @@ -81,7 +81,7 @@ define void @f8(i8 *%dest) { ; 4 bytes, i32 version. define void @f9(i8 *%dest) { -; CHECK: f9: +; CHECK-LABEL: f9: ; CHECK: mvhi 0(%r2), -1 ; CHECK: br %r14 call void @llvm.memset.p0i8.i32(i8 *%dest, i8 -1, i32 4, i32 1, i1 false) @@ -90,7 +90,7 @@ define void @f9(i8 *%dest) { ; 4 bytes, i64 version. define void @f10(i8 *%dest) { -; CHECK: f10: +; CHECK-LABEL: f10: ; CHECK: mvhi 0(%r2), -1 ; CHECK: br %r14 call void @llvm.memset.p0i8.i64(i8 *%dest, i8 -1, i64 4, i32 1, i1 false) @@ -99,7 +99,7 @@ define void @f10(i8 *%dest) { ; 5 bytes, i32 version. define void @f11(i8 *%dest) { -; CHECK: f11: +; CHECK-LABEL: f11: ; CHECK-DAG: mvhi 0(%r2), -1 ; CHECK-DAG: mvi 4(%r2), 255 ; CHECK: br %r14 @@ -109,7 +109,7 @@ define void @f11(i8 *%dest) { ; 5 bytes, i64 version. define void @f12(i8 *%dest) { -; CHECK: f12: +; CHECK-LABEL: f12: ; CHECK-DAG: mvhi 0(%r2), -1 ; CHECK-DAG: mvi 4(%r2), 255 ; CHECK: br %r14 @@ -119,7 +119,7 @@ define void @f12(i8 *%dest) { ; 6 bytes, i32 version. define void @f13(i8 *%dest) { -; CHECK: f13: +; CHECK-LABEL: f13: ; CHECK-DAG: mvhi 0(%r2), -1 ; CHECK-DAG: mvhhi 4(%r2), -1 ; CHECK: br %r14 @@ -129,7 +129,7 @@ define void @f13(i8 *%dest) { ; 6 bytes, i64 version. define void @f14(i8 *%dest) { -; CHECK: f14: +; CHECK-LABEL: f14: ; CHECK-DAG: mvhi 0(%r2), -1 ; CHECK-DAG: mvhhi 4(%r2), -1 ; CHECK: br %r14 @@ -139,7 +139,7 @@ define void @f14(i8 *%dest) { ; 7 bytes, i32 version. define void @f15(i8 *%dest) { -; CHECK: f15: +; CHECK-LABEL: f15: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(6,%r2), 0(%r2) ; CHECK: br %r14 @@ -149,7 +149,7 @@ define void @f15(i8 *%dest) { ; 7 bytes, i64 version. define void @f16(i8 *%dest) { -; CHECK: f16: +; CHECK-LABEL: f16: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(6,%r2), 0(%r2) ; CHECK: br %r14 @@ -159,7 +159,7 @@ define void @f16(i8 *%dest) { ; 8 bytes, i32 version. define void @f17(i8 *%dest) { -; CHECK: f17: +; CHECK-LABEL: f17: ; CHECK: mvghi 0(%r2), -1 ; CHECK: br %r14 call void @llvm.memset.p0i8.i32(i8 *%dest, i8 -1, i32 8, i32 1, i1 false) @@ -168,7 +168,7 @@ define void @f17(i8 *%dest) { ; 8 bytes, i64 version. define void @f18(i8 *%dest) { -; CHECK: f18: +; CHECK-LABEL: f18: ; CHECK: mvghi 0(%r2), -1 ; CHECK: br %r14 call void @llvm.memset.p0i8.i64(i8 *%dest, i8 -1, i64 8, i32 1, i1 false) @@ -177,7 +177,7 @@ define void @f18(i8 *%dest) { ; 9 bytes, i32 version. define void @f19(i8 *%dest) { -; CHECK: f19: +; CHECK-LABEL: f19: ; CHECK-DAG: mvghi 0(%r2), -1 ; CHECK-DAG: mvi 8(%r2), 255 ; CHECK: br %r14 @@ -187,7 +187,7 @@ define void @f19(i8 *%dest) { ; 9 bytes, i64 version. define void @f20(i8 *%dest) { -; CHECK: f20: +; CHECK-LABEL: f20: ; CHECK-DAG: mvghi 0(%r2), -1 ; CHECK-DAG: mvi 8(%r2), 255 ; CHECK: br %r14 @@ -197,7 +197,7 @@ define void @f20(i8 *%dest) { ; 10 bytes, i32 version. define void @f21(i8 *%dest) { -; CHECK: f21: +; CHECK-LABEL: f21: ; CHECK-DAG: mvghi 0(%r2), -1 ; CHECK-DAG: mvhhi 8(%r2), -1 ; CHECK: br %r14 @@ -207,7 +207,7 @@ define void @f21(i8 *%dest) { ; 10 bytes, i64 version. define void @f22(i8 *%dest) { -; CHECK: f22: +; CHECK-LABEL: f22: ; CHECK-DAG: mvghi 0(%r2), -1 ; CHECK-DAG: mvhhi 8(%r2), -1 ; CHECK: br %r14 @@ -217,7 +217,7 @@ define void @f22(i8 *%dest) { ; 11 bytes, i32 version. define void @f23(i8 *%dest) { -; CHECK: f23: +; CHECK-LABEL: f23: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(10,%r2), 0(%r2) ; CHECK: br %r14 @@ -227,7 +227,7 @@ define void @f23(i8 *%dest) { ; 11 bytes, i64 version. define void @f24(i8 *%dest) { -; CHECK: f24: +; CHECK-LABEL: f24: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(10,%r2), 0(%r2) ; CHECK: br %r14 @@ -237,7 +237,7 @@ define void @f24(i8 *%dest) { ; 12 bytes, i32 version. define void @f25(i8 *%dest) { -; CHECK: f25: +; CHECK-LABEL: f25: ; CHECK-DAG: mvghi 0(%r2), -1 ; CHECK-DAG: mvhi 8(%r2), -1 ; CHECK: br %r14 @@ -247,7 +247,7 @@ define void @f25(i8 *%dest) { ; 12 bytes, i64 version. define void @f26(i8 *%dest) { -; CHECK: f26: +; CHECK-LABEL: f26: ; CHECK-DAG: mvghi 0(%r2), -1 ; CHECK-DAG: mvhi 8(%r2), -1 ; CHECK: br %r14 @@ -257,7 +257,7 @@ define void @f26(i8 *%dest) { ; 13 bytes, i32 version. define void @f27(i8 *%dest) { -; CHECK: f27: +; CHECK-LABEL: f27: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(12,%r2), 0(%r2) ; CHECK: br %r14 @@ -267,7 +267,7 @@ define void @f27(i8 *%dest) { ; 13 bytes, i64 version. define void @f28(i8 *%dest) { -; CHECK: f28: +; CHECK-LABEL: f28: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(12,%r2), 0(%r2) ; CHECK: br %r14 @@ -277,7 +277,7 @@ define void @f28(i8 *%dest) { ; 14 bytes, i32 version. define void @f29(i8 *%dest) { -; CHECK: f29: +; CHECK-LABEL: f29: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(13,%r2), 0(%r2) ; CHECK: br %r14 @@ -287,7 +287,7 @@ define void @f29(i8 *%dest) { ; 14 bytes, i64 version. define void @f30(i8 *%dest) { -; CHECK: f30: +; CHECK-LABEL: f30: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(13,%r2), 0(%r2) ; CHECK: br %r14 @@ -297,7 +297,7 @@ define void @f30(i8 *%dest) { ; 15 bytes, i32 version. define void @f31(i8 *%dest) { -; CHECK: f31: +; CHECK-LABEL: f31: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(14,%r2), 0(%r2) ; CHECK: br %r14 @@ -307,7 +307,7 @@ define void @f31(i8 *%dest) { ; 15 bytes, i64 version. define void @f32(i8 *%dest) { -; CHECK: f32: +; CHECK-LABEL: f32: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(14,%r2), 0(%r2) ; CHECK: br %r14 @@ -317,7 +317,7 @@ define void @f32(i8 *%dest) { ; 16 bytes, i32 version. define void @f33(i8 *%dest) { -; CHECK: f33: +; CHECK-LABEL: f33: ; CHECK-DAG: mvghi 0(%r2), -1 ; CHECK-DAG: mvghi 8(%r2), -1 ; CHECK: br %r14 @@ -327,7 +327,7 @@ define void @f33(i8 *%dest) { ; 16 bytes, i64 version. define void @f34(i8 *%dest) { -; CHECK: f34: +; CHECK-LABEL: f34: ; CHECK-DAG: mvghi 0(%r2), -1 ; CHECK-DAG: mvghi 8(%r2), -1 ; CHECK: br %r14 @@ -337,7 +337,7 @@ define void @f34(i8 *%dest) { ; 17 bytes, i32 version. define void @f35(i8 *%dest) { -; CHECK: f35: +; CHECK-LABEL: f35: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(16,%r2), 0(%r2) ; CHECK: br %r14 @@ -347,7 +347,7 @@ define void @f35(i8 *%dest) { ; 17 bytes, i64 version. define void @f36(i8 *%dest) { -; CHECK: f36: +; CHECK-LABEL: f36: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(16,%r2), 0(%r2) ; CHECK: br %r14 @@ -357,7 +357,7 @@ define void @f36(i8 *%dest) { ; 257 bytes, i32 version. define void @f37(i8 *%dest) { -; CHECK: f37: +; CHECK-LABEL: f37: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(256,%r2), 0(%r2) ; CHECK: br %r14 @@ -367,7 +367,7 @@ define void @f37(i8 *%dest) { ; 257 bytes, i64 version. define void @f38(i8 *%dest) { -; CHECK: f38: +; CHECK-LABEL: f38: ; CHECK: mvi 0(%r2), 255 ; CHECK: mvc 1(256,%r2), 0(%r2) ; CHECK: br %r14 @@ -379,7 +379,7 @@ define void @f38(i8 *%dest) { ; For now expect none, so that the test fails and gets updated when ; large copies are implemented. define void @f39(i8 *%dest) { -; CHECK: f39: +; CHECK-LABEL: f39: ; CHECK-NOT: mvc ; CHECK: br %r14 call void @llvm.memset.p0i8.i32(i8 *%dest, i8 -1, i32 258, i32 1, i1 false) @@ -388,7 +388,7 @@ define void @f39(i8 *%dest) { ; 258 bytes, i64 version, with the same comments as above. define void @f40(i8 *%dest) { -; CHECK: f40: +; CHECK-LABEL: f40: ; CHECK-NOT: mvc ; CHECK: br %r14 call void @llvm.memset.p0i8.i64(i8 *%dest, i8 -1, i64 258, i32 1, i1 false) |