Test that large absolute addresses are properly folded into addr modes on
authorChris Lattner <sabre@nondot.org>
Sat, 17 Feb 2007 06:41:57 +0000 (06:41 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 17 Feb 2007 06:41:57 +0000 (06:41 +0000)
both ppc32 and ppc64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34370 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PowerPC/LargeAbsoluteAddr.ll [new file with mode: 0644]

diff --git a/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll b/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll
new file mode 100644 (file)
index 0000000..2f0b486
--- /dev/null
@@ -0,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
+}
+