[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/and-elim.ll

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 10 14:21:48 PDT 2005



Changes in directory llvm/test/Regression/CodeGen/PowerPC:

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

A testcase sitting in my tree


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

 and-elim.ll |   11 +++++++++++
 1 files changed, 11 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/and-elim.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/and-elim.ll:1.1
*** /dev/null	Mon Oct 10 16:21:46 2005
--- llvm/test/Regression/CodeGen/PowerPC/and-elim.ll	Mon Oct 10 16:21:36 2005
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep rlwin
+ 
+ void %test(ubyte* %P) {
+ 	%W = load ubyte* %P
+ 	%X = shl ubyte %W, ubyte 1
+ 	%Y = add ubyte %X, 2
+ 	%Z = and ubyte %Y, 254        ; dead and
+ 	store ubyte %Z, ubyte* %P
+ 	ret void
+ }






More information about the llvm-commits mailing list