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/int-div-05.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/int-div-05.ll')
-rw-r--r-- | test/CodeGen/SystemZ/int-div-05.ll | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/CodeGen/SystemZ/int-div-05.ll b/test/CodeGen/SystemZ/int-div-05.ll index 3141503..8179830 100644 --- a/test/CodeGen/SystemZ/int-div-05.ll +++ b/test/CodeGen/SystemZ/int-div-05.ll @@ -6,7 +6,7 @@ declare i64 @foo() ; Testg register division. The result is in the second of the two registers. define void @f1(i64 %dummy, i64 %a, i64 %b, i64 *%dest) { -; CHECK: f1: +; CHECK-LABEL: f1: ; CHECK-NOT: %r3 ; CHECK: {{llill|lghi}} %r2, 0 ; CHECK-NOT: %r3 @@ -20,7 +20,7 @@ define void @f1(i64 %dummy, i64 %a, i64 %b, i64 *%dest) { ; Testg register remainder. The result is in the first of the two registers. define void @f2(i64 %dummy, i64 %a, i64 %b, i64 *%dest) { -; CHECK: f2: +; CHECK-LABEL: f2: ; CHECK-NOT: %r3 ; CHECK: {{llill|lghi}} %r2, 0 ; CHECK-NOT: %r3 @@ -34,7 +34,7 @@ define void @f2(i64 %dummy, i64 %a, i64 %b, i64 *%dest) { ; Testg that division and remainder use a single instruction. define i64 @f3(i64 %dummy1, i64 %a, i64 %b) { -; CHECK: f3: +; CHECK-LABEL: f3: ; CHECK-NOT: %r3 ; CHECK: {{llill|lghi}} %r2, 0 ; CHECK-NOT: %r3 @@ -50,7 +50,7 @@ define i64 @f3(i64 %dummy1, i64 %a, i64 %b) { ; Testg memory division with no displacement. define void @f4(i64 %dummy, i64 %a, i64 *%src, i64 *%dest) { -; CHECK: f4: +; CHECK-LABEL: f4: ; CHECK-NOT: %r3 ; CHECK: {{llill|lghi}} %r2, 0 ; CHECK-NOT: %r3 @@ -65,7 +65,7 @@ define void @f4(i64 %dummy, i64 %a, i64 *%src, i64 *%dest) { ; Testg memory remainder with no displacement. define void @f5(i64 %dummy, i64 %a, i64 *%src, i64 *%dest) { -; CHECK: f5: +; CHECK-LABEL: f5: ; CHECK-NOT: %r3 ; CHECK: {{llill|lghi}} %r2, 0 ; CHECK-NOT: %r3 @@ -80,7 +80,7 @@ define void @f5(i64 %dummy, i64 %a, i64 *%src, i64 *%dest) { ; Testg both memory division and memory remainder. define i64 @f6(i64 %dummy, i64 %a, i64 *%src) { -; CHECK: f6: +; CHECK-LABEL: f6: ; CHECK-NOT: %r3 ; CHECK: {{llill|lghi}} %r2, 0 ; CHECK-NOT: %r3 @@ -97,7 +97,7 @@ define i64 @f6(i64 %dummy, i64 %a, i64 *%src) { ; Check the high end of the DLG range. define i64 @f7(i64 %dummy, i64 %a, i64 *%src) { -; CHECK: f7: +; CHECK-LABEL: f7: ; CHECK: dlg %r2, 524280(%r4) ; CHECK: br %r14 %ptr = getelementptr i64 *%src, i64 65535 @@ -109,7 +109,7 @@ define i64 @f7(i64 %dummy, i64 %a, i64 *%src) { ; Check the next doubleword up, which needs separate address logic. ; Other sequences besides this one would be OK. define i64 @f8(i64 %dummy, i64 %a, i64 *%src) { -; CHECK: f8: +; CHECK-LABEL: f8: ; CHECK: agfi %r4, 524288 ; CHECK: dlg %r2, 0(%r4) ; CHECK: br %r14 @@ -121,7 +121,7 @@ define i64 @f8(i64 %dummy, i64 %a, i64 *%src) { ; Check the high end of the negative aligned DLG range. define i64 @f9(i64 %dummy, i64 %a, i64 *%src) { -; CHECK: f9: +; CHECK-LABEL: f9: ; CHECK: dlg %r2, -8(%r4) ; CHECK: br %r14 %ptr = getelementptr i64 *%src, i64 -1 @@ -132,7 +132,7 @@ define i64 @f9(i64 %dummy, i64 %a, i64 *%src) { ; Check the low end of the DLG range. define i64 @f10(i64 %dummy, i64 %a, i64 *%src) { -; CHECK: f10: +; CHECK-LABEL: f10: ; CHECK: dlg %r2, -524288(%r4) ; CHECK: br %r14 %ptr = getelementptr i64 *%src, i64 -65536 @@ -144,7 +144,7 @@ define i64 @f10(i64 %dummy, i64 %a, i64 *%src) { ; Check the next doubleword down, which needs separate address logic. ; Other sequences besides this one would be OK. define i64 @f11(i64 %dummy, i64 %a, i64 *%src) { -; CHECK: f11: +; CHECK-LABEL: f11: ; CHECK: agfi %r4, -524296 ; CHECK: dlg %r2, 0(%r4) ; CHECK: br %r14 @@ -156,7 +156,7 @@ define i64 @f11(i64 %dummy, i64 %a, i64 *%src) { ; Check that DLG allows an index. define i64 @f12(i64 %dummy, i64 %a, i64 %src, i64 %index) { -; CHECK: f12: +; CHECK-LABEL: f12: ; CHECK: dlg %r2, 524287(%r5,%r4) ; CHECK: br %r14 %add1 = add i64 %src, %index @@ -169,7 +169,7 @@ define i64 @f12(i64 %dummy, i64 %a, i64 %src, i64 %index) { ; Check that divisions of spilled values can use DLG rather than DLGR. define i64 @f13(i64 *%ptr0) { -; CHECK: f13: +; CHECK-LABEL: f13: ; CHECK: brasl %r14, foo@PLT ; CHECK: dlg {{%r[0-9]+}}, 160(%r15) ; CHECK: br %r14 |