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/cond-store-05.ll | |
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/SystemZ/cond-store-05.ll')
-rw-r--r-- | test/CodeGen/SystemZ/cond-store-05.ll | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/CodeGen/SystemZ/cond-store-05.ll b/test/CodeGen/SystemZ/cond-store-05.ll index 5bcfed0cd4..131d1020cc 100644 --- a/test/CodeGen/SystemZ/cond-store-05.ll +++ b/test/CodeGen/SystemZ/cond-store-05.ll @@ -6,7 +6,7 @@ declare void @foo(float *) ; Test with the loaded value first. define void @f1(float *%ptr, float %alt, i32 %limit) { -; CHECK: f1: +; CHECK-LABEL: f1: ; CHECK-NOT: %r2 ; CHECK: jl [[LABEL:[^ ]*]] ; CHECK-NOT: %r2 @@ -22,7 +22,7 @@ define void @f1(float *%ptr, float %alt, i32 %limit) { ; ...and with the loaded value second define void @f2(float *%ptr, float %alt, i32 %limit) { -; CHECK: f2: +; CHECK-LABEL: f2: ; CHECK-NOT: %r2 ; CHECK: jnl [[LABEL:[^ ]*]] ; CHECK-NOT: %r2 @@ -38,7 +38,7 @@ define void @f2(float *%ptr, float %alt, i32 %limit) { ; Check the high end of the aligned STE range. define void @f3(float *%base, float %alt, i32 %limit) { -; CHECK: f3: +; CHECK-LABEL: f3: ; CHECK-NOT: %r2 ; CHECK: jl [[LABEL:[^ ]*]] ; CHECK-NOT: %r2 @@ -55,7 +55,7 @@ define void @f3(float *%base, float %alt, i32 %limit) { ; Check the next word up, which should use STEY instead of STE. define void @f4(float *%base, float %alt, i32 %limit) { -; CHECK: f4: +; CHECK-LABEL: f4: ; CHECK-NOT: %r2 ; CHECK: jl [[LABEL:[^ ]*]] ; CHECK-NOT: %r2 @@ -72,7 +72,7 @@ define void @f4(float *%base, float %alt, i32 %limit) { ; Check the high end of the aligned STEY range. define void @f5(float *%base, float %alt, i32 %limit) { -; CHECK: f5: +; CHECK-LABEL: f5: ; CHECK-NOT: %r2 ; CHECK: jl [[LABEL:[^ ]*]] ; CHECK-NOT: %r2 @@ -90,7 +90,7 @@ define void @f5(float *%base, float %alt, i32 %limit) { ; Check the next word up, which needs separate address logic. ; Other sequences besides this one would be OK. define void @f6(float *%base, float %alt, i32 %limit) { -; CHECK: f6: +; CHECK-LABEL: f6: ; CHECK-NOT: %r2 ; CHECK: jl [[LABEL:[^ ]*]] ; CHECK-NOT: %r2 @@ -108,7 +108,7 @@ define void @f6(float *%base, float %alt, i32 %limit) { ; Check the low end of the STEY range. define void @f7(float *%base, float %alt, i32 %limit) { -; CHECK: f7: +; CHECK-LABEL: f7: ; CHECK-NOT: %r2 ; CHECK: jl [[LABEL:[^ ]*]] ; CHECK-NOT: %r2 @@ -126,7 +126,7 @@ define void @f7(float *%base, float %alt, i32 %limit) { ; Check the next word down, which needs separate address logic. ; Other sequences besides this one would be OK. define void @f8(float *%base, float %alt, i32 %limit) { -; CHECK: f8: +; CHECK-LABEL: f8: ; CHECK-NOT: %r2 ; CHECK: jl [[LABEL:[^ ]*]] ; CHECK-NOT: %r2 @@ -144,7 +144,7 @@ define void @f8(float *%base, float %alt, i32 %limit) { ; Check that STEY allows an index. define void @f9(i64 %base, i64 %index, float %alt, i32 %limit) { -; CHECK: f9: +; CHECK-LABEL: f9: ; CHECK-NOT: %r2 ; CHECK: jl [[LABEL:[^ ]*]] ; CHECK-NOT: %r2 @@ -163,7 +163,7 @@ define void @f9(i64 %base, i64 %index, float %alt, i32 %limit) { ; Check that volatile loads are not matched. define void @f10(float *%ptr, float %alt, i32 %limit) { -; CHECK: f10: +; CHECK-LABEL: f10: ; CHECK: le {{%f[0-5]}}, 0(%r2) ; CHECK: {{jl|jnl}} [[LABEL:[^ ]*]] ; CHECK: [[LABEL]]: @@ -178,7 +178,7 @@ define void @f10(float *%ptr, float %alt, i32 %limit) { ; ...likewise stores. In this case we should have a conditional load into %f0. define void @f11(float *%ptr, float %alt, i32 %limit) { -; CHECK: f11: +; CHECK-LABEL: f11: ; CHECK: jnl [[LABEL:[^ ]*]] ; CHECK: le %f0, 0(%r2) ; CHECK: [[LABEL]]: @@ -193,7 +193,7 @@ define void @f11(float *%ptr, float %alt, i32 %limit) { ; Try a frame index base. define void @f12(float %alt, i32 %limit) { -; CHECK: f12: +; CHECK-LABEL: f12: ; CHECK: brasl %r14, foo@PLT ; CHECK-NOT: %r15 ; CHECK: jl [[LABEL:[^ ]*]] |