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
+ }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to