diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-30 23:31:55 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-30 23:31:55 +0000 |
commit | 81877ad396e0d44628f6141d83832d6098924dd4 (patch) | |
tree | c7812dff490c8bf1b3bbc3c1e0d9d3c783c24ef9 /test/Analysis | |
parent | b1d70af7b93c1e9161a4e7ca51659a1123c96177 (diff) | |
download | llvm-81877ad396e0d44628f6141d83832d6098924dd4.tar.gz |
Use CHECK-LABEL
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191713 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r-- | test/Analysis/BasicAA/gep-alias.ll | 32 | ||||
-rw-r--r-- | test/Analysis/BasicAA/global-size.ll | 4 | ||||
-rw-r--r-- | test/Analysis/BasicAA/noalias-geps.ll | 2 |
3 files changed, 20 insertions, 18 deletions
diff --git a/test/Analysis/BasicAA/gep-alias.ll b/test/Analysis/BasicAA/gep-alias.ll index 9c2c7eeec38d..d7f783d445f3 100644 --- a/test/Analysis/BasicAA/gep-alias.ll +++ b/test/Analysis/BasicAA/gep-alias.ll @@ -15,7 +15,7 @@ entry: %t = sub i32 %S, %s ret i32 %t -; CHECK: @test1 +; CHECK-LABEL: @test1( ; CHECK: ret i32 0 } @@ -32,7 +32,7 @@ entry: %t = sub i32 %S, %s ret i32 %t -; CHECK: @test2 +; CHECK-LABEL: @test2( ; CHECK: ret i32 0 } @@ -51,7 +51,7 @@ entry: %t = sub i32 %S, %s ret i32 %t -; CHECK: @test3 +; CHECK-LABEL: @test3( ; CHECK: ret i32 0 } @@ -68,7 +68,7 @@ entry: store i8* null, i8** %tmp3, align 8 %tmp4 = load i32* %tmp2, align 8 ret i32 %tmp4 -; CHECK: @test4 +; CHECK-LABEL: @test4( ; CHECK: ret i32 64 } @@ -82,7 +82,7 @@ define i32 @test5(i32* %p, i64 %i) { %y = load i32* %pi %z = sub i32 %x, %y ret i32 %z -; CHECK: @test5 +; CHECK-LABEL: @test5( ; CHECK: ret i32 0 } @@ -97,7 +97,7 @@ define i32 @test6(i32* %p, i64 %i1) { %y = load i32* %pi %z = sub i32 %x, %y ret i32 %z -; CHECK: @test6 +; CHECK-LABEL: @test6( ; CHECK: ret i32 0 } @@ -111,7 +111,7 @@ define i32 @test7(i32* %p, i64 %i) { %y = load i32* %pi %z = sub i32 %x, %y ret i32 %z -; CHECK: @test7 +; CHECK-LABEL: @test7( ; CHECK: ret i32 0 } @@ -128,7 +128,7 @@ define i32 @test8(i32* %p, i16 %i) { %y = load i32* %pi %z = sub i32 %x, %y ret i32 %z -; CHECK: @test8 +; CHECK-LABEL: @test8( ; CHECK: ret i32 0 } @@ -139,7 +139,7 @@ define i8 @test9([4 x i8] *%P, i32 %i, i32 %j) { %P2 = getelementptr [4 x i8] *%P, i32 0, i32 %i3 %j2 = shl i32 %j, 2 - + ; P4 = P + 4*j %P4 = getelementptr [4 x i8]* %P, i32 0, i32 %j2 @@ -148,7 +148,7 @@ define i8 @test9([4 x i8] *%P, i32 %i, i32 %j) { %y = load i8* %P2 %z = sub i8 %x, %y ret i8 %z -; CHECK: @test9 +; CHECK-LABEL: @test9( ; CHECK: ret i8 0 } @@ -157,7 +157,7 @@ define i8 @test10([4 x i8] *%P, i32 %i) { %i3 = add i32 %i2, 4 ; P2 = P + 4 + 4*i %P2 = getelementptr [4 x i8] *%P, i32 0, i32 %i3 - + ; P4 = P + 4*i %P4 = getelementptr [4 x i8]* %P, i32 0, i32 %i2 @@ -166,7 +166,7 @@ define i8 @test10([4 x i8] *%P, i32 %i) { %y = load i8* %P2 %z = sub i8 %x, %y ret i8 %z -; CHECK: @test10 +; CHECK-LABEL: @test10( ; CHECK: ret i8 0 } @@ -182,8 +182,8 @@ define float @test11(i32 %indvar, [4 x [2 x float]]* %q) nounwind ssp { store i64 0, i64* %scevgep35, align 4 %tmp30 = load float* %y29, align 4 ret float %tmp30 - ; CHECK: @test11 - ; CHECK: ret float %tmp30 +; CHECK-LABEL: @test11( +; CHECK: ret float %tmp30 } ; (This was a miscompilation.) @@ -198,6 +198,6 @@ define i32 @test12(i32 %x, i32 %y, i8* %p) nounwind { store i32 0, i32* %castd %r = load i32* %castp ret i32 %r - ; CHECK: @test12 - ; CHECK: ret i32 %r +; CHECK-LABEL: @test12( +; CHECK: ret i32 %r } diff --git a/test/Analysis/BasicAA/global-size.ll b/test/Analysis/BasicAA/global-size.ll index a7e5aab6c1f2..cc6cc4b01915 100644 --- a/test/Analysis/BasicAA/global-size.ll +++ b/test/Analysis/BasicAA/global-size.ll @@ -6,7 +6,7 @@ target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:1 @B = global i16 8 -; CHECK: @test1 +; CHECK-LABEL: @test1( define i16 @test1(i32* %P) { %X = load i16* @B store i32 7, i32* %P @@ -20,7 +20,7 @@ define i16 @test1(i32* %P) { ; rdar://8813415 @window = external global [0 x i8] -; CHECK: @test2 +; CHECK-LABEL: @test2( define i8 @test2(i32 %tmp79, i32 %w.2, i32 %indvar89) nounwind { %tmp92 = add i32 %tmp79, %indvar89 %arrayidx412 = getelementptr [0 x i8]* @window, i32 0, i32 %tmp92 diff --git a/test/Analysis/BasicAA/noalias-geps.ll b/test/Analysis/BasicAA/noalias-geps.ll index a93d778da074..f9ec71345739 100644 --- a/test/Analysis/BasicAA/noalias-geps.ll +++ b/test/Analysis/BasicAA/noalias-geps.ll @@ -4,6 +4,7 @@ target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f3 ; Check that geps with equal base offsets of noalias base pointers stay noalias. define i32 @test(i32* %p, i16 %i) { +; CHECK-LABEL: Function: test: %pi = getelementptr i32* %p, i32 0 %pi.next = getelementptr i32* %p, i32 1 %b = icmp eq i16 %i, 0 @@ -30,6 +31,7 @@ ret i32 0 ; Check that geps with equal indices of noalias base pointers stay noalias. define i32 @test2([2 x i32]* %p, i32 %i) { +; CHECK-LABEL: Function: test2: %pi = getelementptr [2 x i32]* %p, i32 0 %pi.next = getelementptr [2 x i32]* %p, i32 1 %b = icmp eq i32 %i, 0 |