[llvm-commits] CVS: llvm/test/Transforms/InstCombine/icmp.ll

Chris Lattner sabre at nondot.org
Tue Apr 10 23:58:12 PDT 2007



Changes in directory llvm/test/Transforms/InstCombine:

icmp.ll updated: 1.1 -> 1.2
---
Log message:

sext of compares.


---
Diffs of the changes:  (+14 -0)

 icmp.ll |   14 ++++++++++++++
 1 files changed, 14 insertions(+)


Index: llvm/test/Transforms/InstCombine/icmp.ll
diff -u llvm/test/Transforms/InstCombine/icmp.ll:1.1 llvm/test/Transforms/InstCombine/icmp.ll:1.2
--- llvm/test/Transforms/InstCombine/icmp.ll:1.1	Wed Apr 11 01:52:24 2007
+++ llvm/test/Transforms/InstCombine/icmp.ll	Wed Apr 11 01:57:54 2007
@@ -15,3 +15,17 @@
         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
+}
+






More information about the llvm-commits mailing list