diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-02-25 10:16:10 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-02-25 10:16:10 +0000 |
commit | 9394514eded0a07b2686b6cdb6fada73fe4a2621 (patch) | |
tree | 98905b6e1beee270d6dd2938b32612fc54fbd5e4 /test/CodeGen/X86/store-global-address.ll | |
parent | c6d80a4ecfa0345607f7466c7f285831f370b516 (diff) | |
download | external_llvm-9394514eded0a07b2686b6cdb6fada73fe4a2621.zip external_llvm-9394514eded0a07b2686b6cdb6fada73fe4a2621.tar.gz external_llvm-9394514eded0a07b2686b6cdb6fada73fe4a2621.tar.bz2 |
New test case: use lea for imul by some constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26378 91177308-0d34-0410-b5e6-96231b3b80d8
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..c933714 --- /dev/null +++ b/test/CodeGen/X86/store-global-address.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | 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 +} |