Sign in
swiftshader
/
SwiftShader
/
d9ed1c2732ba9b1bd36461367d348e3030043a25
/
.
/
third_party
/
llvm-7.0
/
llvm
/
test
/
CodeGen
/
X86
/
avoid-lea-scale2.ll
blob: cee2ee4e039921ecbebcc95f6437de3c8df4364b [
file
] [
log
] [
blame
]
; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
; CHECK: leal -2({{%rdi,%rdi|%rcx,%rcx}})
define
i32
@foo
(
i32
%x
)
nounwind
readnone
{
%t0
=
shl
i32
%x
,
1
%t1
=
add
i32
%t0
,
-
2
ret
i32
%t1
}