diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:42:54 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:42:54 +0000 |
commit | 39f4e8d9cce22b60a3417a5f17c847fa5b1daebf (patch) | |
tree | 7fed202a2c2c7866f60344b6388e0d3bd98cb14c /test/Transforms/SCCP | |
parent | 82e539d037a33f968e4a5476d3d471e1112f8ab2 (diff) | |
download | external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.zip external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.gz external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.bz2 |
Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change.
This update was done with the following bash script:
find test/Transforms -name "*.ll" | \
while read NAME; do
echo "$NAME"
if ! grep -q "^; *RUN: *llc" $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
mv $TEMP $NAME
fi
done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SCCP')
-rw-r--r-- | test/Transforms/SCCP/ipsccp-addr-taken.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SCCP/ipsccp-basic.ll | 4 | ||||
-rw-r--r-- | test/Transforms/SCCP/sccptest.ll | 4 | ||||
-rw-r--r-- | test/Transforms/SCCP/undef-resolve.ll | 20 |
4 files changed, 15 insertions, 15 deletions
diff --git a/test/Transforms/SCCP/ipsccp-addr-taken.ll b/test/Transforms/SCCP/ipsccp-addr-taken.ll index b49da97..ca586a0 100644 --- a/test/Transforms/SCCP/ipsccp-addr-taken.ll +++ b/test/Transforms/SCCP/ipsccp-addr-taken.ll @@ -6,7 +6,7 @@ target triple = "x86_64-apple-darwin10.0.0" define internal i32 @foo() nounwind noinline ssp { entry: ret i32 0 -; CHECK: @foo +; CHECK-LABEL: @foo( ; CHECK: entry: ; CHECK: ret i32 0 } diff --git a/test/Transforms/SCCP/ipsccp-basic.ll b/test/Transforms/SCCP/ipsccp-basic.ll index 8340f0c..7e05ce4 100644 --- a/test/Transforms/SCCP/ipsccp-basic.ll +++ b/test/Transforms/SCCP/ipsccp-basic.ll @@ -162,7 +162,7 @@ define internal %T @test7a(i32 %A) { %mrv0 = insertvalue %T undef, i32 %X, 0 %mrv1 = insertvalue %T %mrv0, i32 %A, 1 ret %T %mrv1 -; CHECK: @test7a +; CHECK-LABEL: @test7a( ; CHECK-NEXT: %mrv0 = insertvalue %T undef, i32 18, 0 ; CHECK-NEXT: %mrv1 = insertvalue %T %mrv0, i32 17, 1 } @@ -183,7 +183,7 @@ define i32 @test7b() { define internal {} @test8a(i32 %A, i32* %P) { store i32 %A, i32* %P ret {} {} -; CHECK: @test8a +; CHECK-LABEL: @test8a( ; CHECK-NEXT: store i32 5, ; CHECK-NEXT: ret } diff --git a/test/Transforms/SCCP/sccptest.ll b/test/Transforms/SCCP/sccptest.ll index a719f6c..5cc5087 100644 --- a/test/Transforms/SCCP/sccptest.ll +++ b/test/Transforms/SCCP/sccptest.ll @@ -14,7 +14,7 @@ BB3: ; preds = %BB2, %BB1 %Ret = phi i32 [ %Val, %BB1 ], [ 1, %BB2 ] ; <i32> [#uses=1] ret i32 %Ret -; CHECK: @test1 +; CHECK-LABEL: @test1( ; CHECK: %Ret = phi i32 [ 0, %BB1 ], [ 1, %BB2 ] } @@ -22,7 +22,7 @@ BB3: ; preds = %BB2, %BB1 ; that SCCP gets right. ; define i32 @test2(i32 %i0, i32 %j0) { -; CHECK: @test2 +; CHECK-LABEL: @test2( BB1: br label %BB2 BB2: diff --git a/test/Transforms/SCCP/undef-resolve.ll b/test/Transforms/SCCP/undef-resolve.ll index a1a600c..2b40183 100644 --- a/test/Transforms/SCCP/undef-resolve.ll +++ b/test/Transforms/SCCP/undef-resolve.ll @@ -5,7 +5,7 @@ define double @test1() { %t = sitofp i32 undef to double ret double %t -; CHECK: @test1 +; CHECK-LABEL: @test1( ; CHECK: ret double 0.0 } @@ -13,7 +13,7 @@ define double @test1() { ; rdar://7832370 ; Check that lots of stuff doesn't get turned into undef. define i32 @test2() nounwind readnone ssp { -; CHECK: @test2 +; CHECK-LABEL: @test2( init: br label %control.outer.outer @@ -110,7 +110,7 @@ bb1: ; preds = %bb1.us-lcssa, %bb1. define i32 @test3() { %t = xor i32 undef, undef ret i32 %t -; CHECK: @test3 +; CHECK-LABEL: @test3( ; CHECK: ret i32 0 } @@ -118,7 +118,7 @@ define i32 @test3() { define double @test4(double %x) { %t = fadd double %x, undef ret double %t -; CHECK: @test4 +; CHECK-LABEL: @test4( ; CHECK: fadd double %x, undef } @@ -126,7 +126,7 @@ define double @test4(double %x) { define i32 @test5() { %t = sext i8 undef to i32 ret i32 %t -; CHECK: @test5 +; CHECK-LABEL: @test5( ; CHECK: ret i32 0 } @@ -134,7 +134,7 @@ define i32 @test5() { define i32 @test6() { %t = ashr i32 undef, 31 ret i32 %t -; CHECK: @test6 +; CHECK-LABEL: @test6( ; CHECK: ret i32 -1 } @@ -142,7 +142,7 @@ define i32 @test6() { define i32 @test7() { %t = lshr i32 undef, 31 ret i32 %t -; CHECK: @test7 +; CHECK-LABEL: @test7( ; CHECK: ret i32 0 } @@ -150,7 +150,7 @@ define i32 @test7() { define i1 @test8() { %t = icmp eq i32 undef, -1 ret i1 %t -; CHECK: @test8 +; CHECK-LABEL: @test8( ; CHECK: ret i1 undef } @@ -158,7 +158,7 @@ define i1 @test8() { define i1 @test9() { %t = icmp ugt i32 undef, -1 ret i1 %t -; CHECK: @test9 +; CHECK-LABEL: @test9( ; CHECK: icmp ugt } @@ -167,6 +167,6 @@ define i64 @test10() { entry: %e = extractvalue { i64, i64 } undef, 1 ret i64 %e -; CHECK: @test10 +; CHECK-LABEL: @test10( ; CHECK: ret i64 undef } |