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
This commit is contained in:
Evan Cheng 2006-02-25 10:16:10 +00:00
parent c6d80a4ecf
commit 9394514ede
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,8 @@
; RUN: llvm-as < %s | llc -march=x86 | grep lea
declare int %foo()
int %test() {
%tmp.0 = tail call int %foo( ) ; <int> [#uses=1]
%tmp.1 = mul int %tmp.0, 9 ; <int> [#uses=1]
ret int %tmp.1
}

View File

@ -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
}