llvm.org GIT mirror llvm / 4c72b6d
Add CHECK-LABELs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199846 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Arsenault 6 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
99 ; Convert to setne int %X, 12
1010 %c = icmp ne i32 %A, 12 ; [#uses=1]
1111 ret i1 %c
12 ; CHECK-LABEL @test1(
1213 ; CHECK: %c = icmp ne i32 %X, 12
1314 ; CHECK: ret i1 %c
1415 }
1920 ; Convert to setne int %X, %Y
2021 %c = icmp ne i32 %A, %B ; [#uses=1]
2122 ret i1 %c
23 ; CHECK-LABEL @test2(
2224 ; CHECK: %c = icmp ne i32 %X, %Y
2325 ; CHECK: ret i1 %c
2426 }
2830 %C = shl i32 %B, 2 ; [#uses=1]
2931 %D = bitcast i32 %C to i32 ; [#uses=1]
3032 ret i32 %D
33 ; CHECK-LABEL: @test4(
3134 ; CHECK: %C = shl i32 %A, 2
3235 ; CHECK: ret i32 %C
3336 }
3740 %C = and i32 %B, 15 ; [#uses=1]
3841 %D = trunc i32 %C to i16 ; [#uses=1]
3942 ret i16 %D
43 ; CHECK-LABEL: @test5(
4044 ; CHECK: %C = and i16 %A, 15
4145 ; CHECK: ret i16 %C
4246 }
4549 %B = zext i1 %A to i32 ; [#uses=1]
4650 %C = icmp ne i32 %B, 0 ; [#uses=1]
4751 ret i1 %C
52 ; CHECK-LABEL: @test6(
4853 ; CHECK: ret i1 %A
4954 }
5055
5257 %B = zext i1 %A to i32 ; [#uses=1]
5358 %C = icmp ne i32 %B, -1 ; [#uses=1]
5459 ret i1 %C
60 ; CHECK-LABEL: @test6a(
5561 ; CHECK: ret i1 true
5662 }
5763
5965 %B = bitcast i8* %A to i32* ; [#uses=1]
6066 %C = icmp eq i32* %B, null ; [#uses=1]
6167 ret i1 %C
68 ; CHECK-LABEL: @test7(
6269 ; CHECK: %C = icmp eq i8* %A, null
6370 ; CHECK: ret i1 %C
6471 }