diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-06-02 20:09:31 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-06-02 20:09:31 +0000 |
commit | da9863fa414558127e001197961ce93c0049cbf5 (patch) | |
tree | 26a7843fa5fff53eeffec4a21be8138c70b2bcbb /test/CodeGen/X86/x86-store-gv-addr.ll | |
parent | d8cf40372ed64ba69f8d0d7c79bebdf293dd5d1e (diff) |
On Darwin x86_64 small code model doesn't guarantee code address fits in 32-bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/x86-store-gv-addr.ll')
-rw-r--r-- | test/CodeGen/X86/x86-store-gv-addr.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/x86-store-gv-addr.ll b/test/CodeGen/X86/x86-store-gv-addr.ll new file mode 100644 index 0000000000..53d6a91e2a --- /dev/null +++ b/test/CodeGen/X86/x86-store-gv-addr.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin -relocation-model=static | grep lea +; RUN: llvm-as < %s | llc -mtriple=x86_64-pc-linux-gnu -relocation-model=static | not grep lea + +@v = external global i32, align 8 +@v_addr = external global i32*, align 8 + +define void @t() nounwind optsize { + store i32* @v, i32** @v_addr, align 8 + unreachable +} |