mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 07:31:53 +00:00
sext of compares.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35892 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8a9f571052
commit
12f591342f
@ -15,3 +15,17 @@ entry:
|
||||
ret i32 %1
|
||||
}
|
||||
|
||||
define i32 @test3(i32 %X) {
|
||||
entry:
|
||||
icmp slt i32 %X, 0 ; <i1>:0 [#uses=1]
|
||||
sext i1 %0 to i32 ; <i32>:1 [#uses=1]
|
||||
ret i32 %1
|
||||
}
|
||||
|
||||
define i32 @test4(i32 %X) {
|
||||
entry:
|
||||
icmp ult i32 %X, -2147483648 ; <i1>:0 [#uses=1]
|
||||
sext i1 %0 to i32 ; <i32>:1 [#uses=1]
|
||||
ret i32 %1
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user