diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-17 06:41:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-17 06:41:57 +0000 |
commit | 6e1472a9280714bc0d4a8663c5d696961f22204d (patch) | |
tree | eca04c9cea17ebb0406b17ec9c415687118db092 /test/CodeGen/PowerPC/LargeAbsoluteAddr.ll | |
parent | 95ad943ed5b2212652b40ebcbb675fde67dc474a (diff) |
Test that large absolute addresses are properly folded into addr modes on
both ppc32 and ppc64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/LargeAbsoluteAddr.ll')
-rw-r--r-- | test/CodeGen/PowerPC/LargeAbsoluteAddr.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll b/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll new file mode 100644 index 0000000000..2f0b4864d7 --- /dev/null +++ b/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 +} + |