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
This commit is contained in:
Stephen Lin
2013-07-14 01:42:54 +00:00
parent 82e539d037
commit 39f4e8d9cc
444 changed files with 2477 additions and 2477 deletions
+1 -1
View File
@@ -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
}
+2 -2
View File
@@ -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
}
+2 -2
View File
@@ -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:
+10 -10
View File
@@ -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
}