[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/set.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 11 18:06:42 PST 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
set.ll updated: 1.17 -> 1.18
---
Log message:
new testcase
---
Diffs of the changes: (+9 -1)
set.ll | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletion(-)
Index: llvm/test/Regression/Transforms/InstCombine/set.ll
diff -u llvm/test/Regression/Transforms/InstCombine/set.ll:1.17 llvm/test/Regression/Transforms/InstCombine/set.ll:1.18
--- llvm/test/Regression/Transforms/InstCombine/set.ll:1.17 Thu May 5 20:51:05 2005
+++ llvm/test/Regression/Transforms/InstCombine/set.ll Sat Feb 11 20:06:31 2006
@@ -1,6 +1,6 @@
; This test makes sure that these instructions are properly eliminated.
;
-
+; RUN: llvm-as < %s | opt -instcombine -disable-output &&
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep set
%X = uninitialized global int
@@ -121,3 +121,11 @@
ret int %retval
}
+bool %test22(uint %A, int %X) {
+ %B = and uint %A, 100663295
+ %C = setlt uint %B, 268435456
+ %Y = and int %X, 7
+ %Z = setgt int %Y, -1
+ %R = or bool %C, %Z
+ ret bool %R
+}
More information about the llvm-commits
mailing list