[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/select.ll
Chris Lattner
sabre at nondot.org
Mon Sep 18 23:18:09 PDT 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
select.ll updated: 1.12 -> 1.13
---
Log message:
make this harder
---
Diffs of the changes: (+14 -2)
select.ll | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
Index: llvm/test/Regression/Transforms/InstCombine/select.ll
diff -u llvm/test/Regression/Transforms/InstCombine/select.ll:1.12 llvm/test/Regression/Transforms/InstCombine/select.ll:1.13
--- llvm/test/Regression/Transforms/InstCombine/select.ll:1.12 Tue Sep 19 01:16:46 2006
+++ llvm/test/Regression/Transforms/InstCombine/select.ll Tue Sep 19 01:17:55 2006
@@ -1,6 +1,7 @@
; This test makes sure that these instructions are properly eliminated.
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep select
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep select &&
+; RUN: llvm-as < %s | opt -instcombine -disable-output
implementation
@@ -155,7 +156,6 @@
}
int %test19(uint %x) {
-entry:
%tmp = setgt uint %x, 2147483647
%retval = select bool %tmp, int -1, int 0
ret int %retval
@@ -167,3 +167,15 @@
ret int %retval
}
+long %test21(int %x) {
+ %tmp = setlt int %x, 0
+ %retval = select bool %tmp, long -1, long 0
+ ret long %retval
+}
+
+short %test20(int %x) {
+ %tmp = setlt int %x, 0
+ %retval = select bool %tmp, short -1, short 0
+ ret short %retval
+}
+
More information about the llvm-commits
mailing list