[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/select.ll
Chris Lattner
sabre at nondot.org
Mon Sep 18 23:17:01 PDT 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
select.ll updated: 1.11 -> 1.12
---
Log message:
new testcases
---
Diffs of the changes: (+14 -1)
select.ll | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletion(-)
Index: llvm/test/Regression/Transforms/InstCombine/select.ll
diff -u llvm/test/Regression/Transforms/InstCombine/select.ll:1.11 llvm/test/Regression/Transforms/InstCombine/select.ll:1.12
--- llvm/test/Regression/Transforms/InstCombine/select.ll:1.11 Sat Sep 9 15:26:04 2006
+++ llvm/test/Regression/Transforms/InstCombine/select.ll Tue Sep 19 01:16:46 2006
@@ -1,5 +1,4 @@
; This test makes sure that these instructions are properly eliminated.
-;
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep select
@@ -154,3 +153,17 @@
%V = div int %Y, %R ; div Y,X
ret int %V
}
+
+int %test19(uint %x) {
+entry:
+ %tmp = setgt uint %x, 2147483647
+ %retval = select bool %tmp, int -1, int 0
+ ret int %retval
+}
+
+int %test20(int %x) {
+ %tmp = setlt int %x, 0
+ %retval = select bool %tmp, int -1, int 0
+ ret int %retval
+}
+
More information about the llvm-commits
mailing list