[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/shl-trunc.ll

Chris Lattner sabre at nondot.org
Mon Dec 4 17:29:16 PST 2006



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

shl-trunc.ll added (r1.1)
---
Log message:

new testcase


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

 shl-trunc.ll |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/test/Regression/Transforms/InstCombine/shl-trunc.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/shl-trunc.ll:1.1
*** /dev/null	Mon Dec  4 19:29:11 2006
--- llvm/test/Regression/Transforms/InstCombine/shl-trunc.ll	Mon Dec  4 19:29:01 2006
***************
*** 0 ****
--- 1,7 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl
+ 
+ bool %test(int %X, ubyte %A) {
+ 	%B = lshr int %X, ubyte %A
+ 	%D = trunc int %B to bool
+ 	ret bool %D
+ }






More information about the llvm-commits mailing list