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 | 448641d87c20b0e3a9d601b416dfcfdf2814c2ce (patch) | |
| tree | 3224287c99960861a31bc3dcdda499e1add0f8cc /llvm/test/CodeGen/X86/x86-store-gv-addr.ll | |
| parent | 6ab4375f87aef663a0f36c438eafa97059ff02a5 (diff) | |
| download | bcm5719-llvm-448641d87c20b0e3a9d601b416dfcfdf2814c2ce.tar.gz bcm5719-llvm-448641d87c20b0e3a9d601b416dfcfdf2814c2ce.zip | |
On Darwin x86_64 small code model doesn't guarantee code address fits in 32-bit.
llvm-svn: 72734
Diffstat (limited to 'llvm/test/CodeGen/X86/x86-store-gv-addr.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/x86-store-gv-addr.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/x86-store-gv-addr.ll b/llvm/test/CodeGen/X86/x86-store-gv-addr.ll new file mode 100644 index 00000000000..53d6a91e2a3 --- /dev/null +++ b/llvm/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 +} |

