diff options
Diffstat (limited to 'test/CodeGen/X86/store-global-address.ll')
-rw-r--r-- | test/CodeGen/X86/store-global-address.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/store-global-address.ll b/test/CodeGen/X86/store-global-address.ll new file mode 100644 index 0000000..77e344d --- /dev/null +++ b/test/CodeGen/X86/store-global-address.ll @@ -0,0 +1,9 @@ +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep movl | wc -l | grep 1 + +%dst = global int 0 +%ptr = global int* null + +void %test() { + store int* %dst, int** %ptr + ret void +} |