diff options
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 0000000..53d6a91 --- /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 +} |