[llvm-commits] CVS: llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll

Chris Lattner sabre at nondot.org
Fri Feb 16 22:42:13 PST 2007



Changes in directory llvm/test/CodeGen/PowerPC:

LargeAbsoluteAddr.ll added (r1.1)
---
Log message:

Test that large absolute addresses are properly folded into addr modes on
both ppc32 and ppc64.


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

 LargeAbsoluteAddr.ll |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll
diff -c /dev/null llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll:1.1
*** /dev/null	Sat Feb 17 00:42:07 2007
--- llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll	Sat Feb 17 00:41:57 2007
***************
*** 0 ****
--- 1,9 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'stw r3, 32751' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | grep 'stw r3, 32751' &&
+ ; RUN: llvm-as < %s | llc
+ 
+ define void @test() {
+ 	store i32 0, i32* inttoptr (i64 48725999 to i32*)
+ 	ret void
+ }
+ 






More information about the llvm-commits mailing list