[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/div-2.ll

Chris Lattner lattner at cs.uiuc.edu
Thu Oct 6 23:10:14 PDT 2005



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

div-2.ll added (r1.1)
---
Log message:

New testcase, should turn into a ushr


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

 div-2.ll |    8 ++++++++
 1 files changed, 8 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/div-2.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/div-2.ll:1.1
*** /dev/null	Fri Oct  7 01:10:13 2005
--- llvm/test/Regression/CodeGen/PowerPC/div-2.ll	Fri Oct  7 01:10:03 2005
***************
*** 0 ****
--- 1,8 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep srawi &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep blr
+ 
+ int %test(int %X) {
+ 	%Y = and int %X, 15
+ 	%Z = div int %Y, 4
+ 	ret int %Z
+ }






More information about the llvm-commits mailing list