repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git]
/
test
/
CodeGen
/
X86
/
avoid-lea-scale2.ll
blob
8003de262d2cfaa00f20802925ad37096d3c8ce1
1
; RUN: llc < %s -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