mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
df2896d609
llvm-svn: 81290
9 lines
175 B
LLVM
9 lines
175 B
LLVM
; 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
|
|
}
|
|
|