[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/and-compare.ll

Chris Lattner sabre at nondot.org
Mon Nov 13 22:04:52 PST 2006



Changes in directory llvm/test/Regression/Transforms/InstCombine:

and-compare.ll added (r1.1)
---
Log message:

new testcase


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

 and-compare.ll |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/test/Regression/Transforms/InstCombine/and-compare.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/and-compare.ll:1.1
*** /dev/null	Tue Nov 14 00:04:45 2006
--- llvm/test/Regression/Transforms/InstCombine/and-compare.ll	Tue Nov 14 00:04:35 2006
***************
*** 0 ****
--- 1,10 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep and | wc -l | grep 1
+ 
+ ; Should be optimized to one and.
+ bool %test1(uint %a, uint %b) {
+         %tmp1 = and uint %a, 65280
+         %tmp3 = and uint %b, 65280
+         %tmp = setne uint %tmp1, %tmp3
+         ret bool %tmp
+ }
+ 






More information about the llvm-commits mailing list