Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
llvm
/
b09a97e5653c2c391f8759ad6a966a15a0c4168a
/
.
/
test
/
CodeGen
/
X86
/
avoid-lea-scale2.ll
blob: 8003de262d2cfaa00f20802925ad37096d3c8ce1 [
file
] [
log
] [
blame
]
; RUN: llc < %s -march=x86-64 | grep {leal.*-2(\[%\]rdi,\[%\]rdi)}
define
i32
@foo
(
i32
%x
)
nounwind
readnone
{
%t0
=
shl
i32
%x
,
1
%t1
=
add
i32
%t0
,
-
2
ret
i32
%t1
}