summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-17 06:41:57 +0000
committerChris Lattner <sabre@nondot.org>2007-02-17 06:41:57 +0000
commit2be2ab59d50fb408a8fbde0b80112974c7f0a578 (patch)
treef367d23790ca8348938c928e2bf03aaca513768f /llvm/test/CodeGen/PowerPC
parent56e5fea163f6ad6d603ef61387b26e84c382adf8 (diff)
downloadbcm5719-llvm-2be2ab59d50fb408a8fbde0b80112974c7f0a578.tar.gz
bcm5719-llvm-2be2ab59d50fb408a8fbde0b80112974c7f0a578.zip
Test that large absolute addresses are properly folded into addr modes on
both ppc32 and ppc64. llvm-svn: 34370
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
-rw-r--r--llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll b/llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll
new file mode 100644
index 00000000000..2f0b4864d71
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll
@@ -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
+}
+
OpenPOWER on IntegriCloud