projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a9f571
)
sext of compares.
author
Chris Lattner
<sabre@nondot.org>
Wed, 11 Apr 2007 06:57:54 +0000
(06:57 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 11 Apr 2007 06:57:54 +0000
(06:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35892
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/icmp.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/icmp.ll
b/test/Transforms/InstCombine/icmp.ll
index b449002f6f2aa63975da301c2795ab8b13e8314c..e07b53e63a77718a1655d1c8f289a0099c5ad30a 100644
(file)
--- a/
test/Transforms/InstCombine/icmp.ll
+++ b/
test/Transforms/InstCombine/icmp.ll
@@
-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
+}
+