[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/shift-sra.ll
Chris Lattner
sabre at nondot.org
Sun Sep 17 21:31:32 PDT 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
shift-sra.ll added (r1.1)
---
Log message:
New testcase, can be an srl instead of sra
---
Diffs of the changes: (+8 -0)
shift-sra.ll | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/test/Regression/Transforms/InstCombine/shift-sra.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/shift-sra.ll:1.1
*** /dev/null Sun Sep 17 23:31:28 2006
--- llvm/test/Regression/Transforms/InstCombine/shift-sra.ll Sun Sep 17 23:31:18 2006
***************
*** 0 ****
--- 1,8 ----
+ ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'shr int'
+
+ int %test0(int %X, ubyte %A) {
+ %Y = shr int %X, ubyte %A ; can be logical shift.
+ %Z = and int %Y, 1
+ ret int %Z
+ }
More information about the llvm-commits
mailing list