diff --git a/test/CodeGen/X86/imul-lea.ll b/test/CodeGen/X86/imul-lea.ll new file mode 100644 index 00000000000..6f2e3a986e7 --- /dev/null +++ b/test/CodeGen/X86/imul-lea.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llc -march=x86 | grep lea + +declare int %foo() +int %test() { + %tmp.0 = tail call int %foo( ) ; [#uses=1] + %tmp.1 = mul int %tmp.0, 9 ; [#uses=1] + ret int %tmp.1 +} diff --git a/test/CodeGen/X86/store-global-address.ll b/test/CodeGen/X86/store-global-address.ll new file mode 100644 index 00000000000..c933714ea61 --- /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 +}