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

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 30 11:44:21 PDT 2005



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

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

The dag isel misses both of these, the pattern isel just misses the second
one.  TODO :)



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

 and-imm.ll |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/and-imm.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/and-imm.ll:1.1
*** /dev/null	Tue Aug 30 13:44:19 2005
--- llvm/test/Regression/CodeGen/PowerPC/and-imm.ll	Tue Aug 30 13:44:09 2005
***************
*** 0 ****
--- 1,13 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'ori\|lis'
+ ; XFAIL: *
+ 
+ int %test(int %X) {
+ 	%Y = and int %X, 32769   ; andi. r3, r3, 32769
+ 	ret int %Y
+ }
+ 
+ int %test2(int %X) {
+ 	%Y = and int %X, -2147418112 ; andis. r3, r3, 32769
+ 	ret int %Y
+ }
+ 






More information about the llvm-commits mailing list