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/PowerPC/rounding-ops.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/PowerPC/rounding-ops.ll')
-rw-r--r-- | test/CodeGen/PowerPC/rounding-ops.ll | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/CodeGen/PowerPC/rounding-ops.ll b/test/CodeGen/PowerPC/rounding-ops.ll index fa57ee2..2c02900 100644 --- a/test/CodeGen/PowerPC/rounding-ops.ll +++ b/test/CodeGen/PowerPC/rounding-ops.ll @@ -10,7 +10,7 @@ define float @test1(float %x) nounwind { ; CHECK-LABEL: test1: ; CHECK: frim 1, 1 -; CHECK-FM: test1: +; CHECK-FM-LABEL: test1: ; CHECK-FM: frim 1, 1 } @@ -23,7 +23,7 @@ define double @test2(double %x) nounwind { ; CHECK-LABEL: test2: ; CHECK: frim 1, 1 -; CHECK-FM: test2: +; CHECK-FM-LABEL: test2: ; CHECK-FM: frim 1, 1 } @@ -36,7 +36,7 @@ define float @test3(float %x) nounwind { ; CHECK-LABEL: test3: ; CHECK-NOT: frin -; CHECK-FM: test3: +; CHECK-FM-LABEL: test3: ; CHECK-FM: frin 1, 1 } @@ -49,7 +49,7 @@ define double @test4(double %x) nounwind { ; CHECK-LABEL: test4: ; CHECK-NOT: frin -; CHECK-FM: test4: +; CHECK-FM-LABEL: test4: ; CHECK-FM: frin 1, 1 } @@ -62,7 +62,7 @@ define float @test5(float %x) nounwind { ; CHECK-LABEL: test5: ; CHECK: frip 1, 1 -; CHECK-FM: test5: +; CHECK-FM-LABEL: test5: ; CHECK-FM: frip 1, 1 } @@ -75,7 +75,7 @@ define double @test6(double %x) nounwind { ; CHECK-LABEL: test6: ; CHECK: frip 1, 1 -; CHECK-FM: test6: +; CHECK-FM-LABEL: test6: ; CHECK-FM: frip 1, 1 } @@ -88,7 +88,7 @@ define float @test9(float %x) nounwind { ; CHECK-LABEL: test9: ; CHECK: friz 1, 1 -; CHECK-FM: test9: +; CHECK-FM-LABEL: test9: ; CHECK-FM: friz 1, 1 } @@ -101,7 +101,7 @@ define double @test10(double %x) nounwind { ; CHECK-LABEL: test10: ; CHECK: friz 1, 1 -; CHECK-FM: test10: +; CHECK-FM-LABEL: test10: ; CHECK-FM: friz 1, 1 } @@ -115,7 +115,7 @@ define void @test11(float %x, float* %y) nounwind { ; CHECK-LABEL: test11: ; CHECK-NOT: frin -; CHECK-FM: test11: +; CHECK-FM-LABEL: test11: ; CHECK-FM: frin [[R2:[0-9]+]], [[R1:[0-9]+]] ; CHECK-FM: fcmpu [[CR:[0-9]+]], [[R2]], [[R1]] ; CHECK-FM: beq [[CR]], .LBB[[BB:[0-9]+]]_2 @@ -134,7 +134,7 @@ define void @test12(double %x, double* %y) nounwind { ; CHECK-LABEL: test12: ; CHECK-NOT: frin -; CHECK-FM: test12: +; CHECK-FM-LABEL: test12: ; CHECK-FM: frin [[R2:[0-9]+]], [[R1:[0-9]+]] ; CHECK-FM: fcmpu [[CR:[0-9]+]], [[R2]], [[R1]] ; CHECK-FM: beq [[CR]], .LBB[[BB:[0-9]+]]_2 |