diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:50:49 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:50:49 +0000 |
commit | 15bfd6d3ad739cca0a12049f3e7e94c3645ee881 (patch) | |
tree | 21476928d99a2db9bfb4a6af003f4030160d4703 /test/Transforms/InstCombine | |
parent | 39f4e8d9cce22b60a3417a5f17c847fa5b1daebf (diff) | |
download | llvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.tar.gz llvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.tar.bz2 llvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.tar.xz |
Catch more CHECK that can be converted to CHECK-LABEL in Transforms for easier debugging. No functionality change.
This conversion 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_]*\):\( *\)define\([^@]*\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3define\4@$FUNC(/g" $TEMP
done
mv $TEMP $NAME
fi
done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r-- | test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll | 4 | ||||
-rw-r--r-- | test/Transforms/InstCombine/2012-3-15-or-xor-constant.ll | 2 | ||||
-rw-r--r-- | test/Transforms/InstCombine/atomic.ll | 4 | ||||
-rw-r--r-- | test/Transforms/InstCombine/extractvalue.ll | 6 | ||||
-rw-r--r-- | test/Transforms/InstCombine/icmp.ll | 2 | ||||
-rw-r--r-- | test/Transforms/InstCombine/memcpy.ll | 6 | ||||
-rw-r--r-- | test/Transforms/InstCombine/osx-names.ll | 4 | ||||
-rw-r--r-- | test/Transforms/InstCombine/vec_demanded_elts.ll | 2 | ||||
-rw-r--r-- | test/Transforms/InstCombine/weak-symbols.ll | 4 |
9 files changed, 17 insertions, 17 deletions
diff --git a/test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll b/test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll index fedb46dd24..a75a4656e6 100644 --- a/test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll +++ b/test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll @@ -2,7 +2,7 @@ target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32" target triple = "i386-apple-darwin10.0.0" -; CHECK: define void @fu1 +; CHECK-LABEL: define void @fu1( define void @fu1(i32 %parm) nounwind ssp { %1 = alloca i32, align 4 ; CHECK: alloca double* @@ -33,7 +33,7 @@ define void @fu1(i32 %parm) nounwind ssp { declare void @bar(double*) -; CHECK: define void @fu2 +; CHECK-LABEL: define void @fu2( define void @fu2(i32 %parm) nounwind ssp { %1 = alloca i32, align 4 %ptr = alloca double*, align 4 diff --git a/test/Transforms/InstCombine/2012-3-15-or-xor-constant.ll b/test/Transforms/InstCombine/2012-3-15-or-xor-constant.ll index c1602da4c8..466629cb5f 100644 --- a/test/Transforms/InstCombine/2012-3-15-or-xor-constant.ll +++ b/test/Transforms/InstCombine/2012-3-15-or-xor-constant.ll @@ -9,4 +9,4 @@ entry: %or4 = or i32 or (i32 zext (i1 icmp eq (i32* @g, i32* null) to i32), i32 1), %xor ret i32 %or4 } -; CHECK: define i32 @function +; CHECK-LABEL: define i32 @function( diff --git a/test/Transforms/InstCombine/atomic.ll b/test/Transforms/InstCombine/atomic.ll index 097cf5eafe..ccee87433f 100644 --- a/test/Transforms/InstCombine/atomic.ll +++ b/test/Transforms/InstCombine/atomic.ll @@ -6,7 +6,7 @@ target triple = "x86_64-apple-macosx10.7.0" ; Check transforms involving atomic operations define i32* @test1(i8** %p) { -; CHECK: define i32* @test1 +; CHECK-LABEL: define i32* @test1( ; CHECK: load atomic i8** %p monotonic, align 8 %c = bitcast i8** %p to i32** %r = load atomic i32** %c monotonic, align 8 @@ -14,7 +14,7 @@ define i32* @test1(i8** %p) { } define i32 @test2(i32* %p) { -; CHECK: define i32 @test2 +; CHECK-LABEL: define i32 @test2( ; CHECK: %x = load atomic i32* %p seq_cst, align 4 ; CHECK: shl i32 %x, 1 %x = load atomic i32* %p seq_cst, align 4 diff --git a/test/Transforms/InstCombine/extractvalue.ll b/test/Transforms/InstCombine/extractvalue.ll index 5e4c677782..04c7ffa219 100644 --- a/test/Transforms/InstCombine/extractvalue.ll +++ b/test/Transforms/InstCombine/extractvalue.ll @@ -3,7 +3,7 @@ declare void @bar({i32, i32} %a) declare i32 @baz(i32 %a) -; CHECK: define i32 @foo +; CHECK-LABEL: define i32 @foo( ; CHECK-NOT: extractvalue define i32 @foo(i32 %a, i32 %b) { ; Instcombine should fold various combinations of insertvalue and extractvalue @@ -39,7 +39,7 @@ define i32 @foo(i32 %a, i32 %b) { ret i32 %v5 } -; CHECK: define i32 @extract2gep +; CHECK-LABEL: define i32 @extract2gep( ; CHECK-NEXT: [[GEP:%[a-z0-9]+]] = getelementptr inbounds {{.*}}* %pair, i32 0, i32 1 ; CHECK-NEXT: [[LOAD:%[A-Za-z0-9]+]] = load i32* [[GEP]] ; CHECK-NEXT: store @@ -67,7 +67,7 @@ end: ret i32 %E } -; CHECK: define i32 @doubleextract2gep +; CHECK-LABEL: define i32 @doubleextract2gep( ; CHECK-NEXT: [[GEP:%[a-z0-9]+]] = getelementptr inbounds {{.*}}* %arg, i32 0, i32 1, i32 1 ; CHECK-NEXT: [[LOAD:%[A-Za-z0-9]+]] = load i32* [[GEP]] ; CHECK-NEXT: ret i32 [[LOAD]] diff --git a/test/Transforms/InstCombine/icmp.ll b/test/Transforms/InstCombine/icmp.ll index bc3112ba3f..dfeac676e1 100644 --- a/test/Transforms/InstCombine/icmp.ll +++ b/test/Transforms/InstCombine/icmp.ll @@ -990,7 +990,7 @@ define i1 @icmp_add_and_shr_ne_0(i32 %X) { } ; PR16244 -; CHECK: define i1 @test71 +; CHECK-LABEL: define i1 @test71( ; CHECK-NEXT: ret i1 false define i1 @test71(i8* %x) { %a = getelementptr i8* %x, i64 8 diff --git a/test/Transforms/InstCombine/memcpy.ll b/test/Transforms/InstCombine/memcpy.ll index 3a68ff95af..f66e14c95a 100644 --- a/test/Transforms/InstCombine/memcpy.ll +++ b/test/Transforms/InstCombine/memcpy.ll @@ -6,7 +6,7 @@ declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, define void @test1(i8* %a) { tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* %a, i8* %a, i32 100, i32 1, i1 false) ret void -; CHECK: define void @test1 +; CHECK-LABEL: define void @test1( ; CHECK-NEXT: ret void } @@ -15,13 +15,13 @@ define void @test1(i8* %a) { define void @test2(i8* %a) { tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* %a, i8* %a, i32 100, i32 1, i1 true) ret void -; CHECK: define void @test2 +; CHECK-LABEL: define void @test2( ; CHECK-NEXT: call void @llvm.memcpy } define void @test3(i8* %d, i8* %s) { tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %d, i8* %s, i64 17179869184, i32 4, i1 false) ret void -; CHECK: define void @test3 +; CHECK-LABEL: define void @test3( ; CHECK-NEXT: call void @llvm.memcpy } diff --git a/test/Transforms/InstCombine/osx-names.ll b/test/Transforms/InstCombine/osx-names.ll index 7b83526ace..926caadc49 100644 --- a/test/Transforms/InstCombine/osx-names.ll +++ b/test/Transforms/InstCombine/osx-names.ll @@ -14,14 +14,14 @@ target triple = "i386-apple-macosx10.7.2" @.str2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1 define void @test1(%struct.__sFILE* %stream) nounwind { -; CHECK: define void @test1 +; CHECK-LABEL: define void @test1( ; CHECK: call i32 @"fwrite$UNIX2003" %call = tail call i32 (%struct.__sFILE*, i8*, ...)* @fprintf(%struct.__sFILE* %stream, i8* getelementptr inbounds ([13 x i8]* @.str, i32 0, i32 0)) nounwind ret void } define void @test2(%struct.__sFILE* %stream, i8* %str) nounwind ssp { -; CHECK: define void @test2 +; CHECK-LABEL: define void @test2( ; CHECK: call i32 @"fputs$UNIX2003" %call = tail call i32 (%struct.__sFILE*, i8*, ...)* @fprintf(%struct.__sFILE* %stream, i8* getelementptr inbounds ([3 x i8]* @.str2, i32 0, i32 0), i8* %str) nounwind ret void diff --git a/test/Transforms/InstCombine/vec_demanded_elts.ll b/test/Transforms/InstCombine/vec_demanded_elts.ll index 727680032e..d12412a929 100644 --- a/test/Transforms/InstCombine/vec_demanded_elts.ll +++ b/test/Transforms/InstCombine/vec_demanded_elts.ll @@ -155,7 +155,7 @@ declare <4 x i32> @llvm.x86.sse41.pmovzxwd(<8 x i16>) nounwind readnone define <4 x float> @dead_shuffle_elt(<4 x float> %x, <2 x float> %y) nounwind { entry: -; CHECK: define <4 x float> @dead_shuffle_elt +; CHECK-LABEL: define <4 x float> @dead_shuffle_elt( ; CHECK: shufflevector <2 x float> %y, <2 x float> undef, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef> %shuffle.i = shufflevector <2 x float> %y, <2 x float> %y, <4 x i32> <i32 0, i32 1, i32 0, i32 1> %shuffle9.i = shufflevector <4 x float> %x, <4 x float> %shuffle.i, <4 x i32> <i32 4, i32 5, i32 2, i32 3> diff --git a/test/Transforms/InstCombine/weak-symbols.ll b/test/Transforms/InstCombine/weak-symbols.ll index 0039b5962f..ec946ead86 100644 --- a/test/Transforms/InstCombine/weak-symbols.ll +++ b/test/Transforms/InstCombine/weak-symbols.ll @@ -8,7 +8,7 @@ @.str = private constant [2 x i8] c"y\00" define i32 @foo() nounwind { -; CHECK: define i32 @foo +; CHECK-LABEL: define i32 @foo( ; CHECK: call i32 @strcmp ; CHECK: ret i32 %temp1 @@ -20,7 +20,7 @@ entry: } define i32 @bar() nounwind { -; CHECK: define i32 @bar +; CHECK-LABEL: define i32 @bar( ; CHECK: ret i32 0 entry: |