projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Pointer arithmetic should be done with the index the same size as the pointer.
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
imul-lea.ll
1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep lea
2
3
declare int %foo()
4
int %test() {
5
%tmp.0 = tail call int %foo( ) ; <int> [#uses=1]
6
%tmp.1 = mul int %tmp.0, 9 ; <int> [#uses=1]
7
ret int %tmp.1
8
}