projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix a bug in the DAGCombiner's handling of multiple linked
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
avoid-lea-scale2.ll
1
; RUN: llvm-as < %s | llc -march=x86-64 | grep {leal.*-2(\[%\]rdi,\[%\]rdi)}
2
3
define i32 @foo(i32 %x) nounwind readnone {
4
%t0 = shl i32 %x, 1
5
%t1 = add i32 %t0, -2
6
ret i32 %t1
7
}
8