mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
41d0b9d952
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76817 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
185 B
LLVM
9 lines
185 B
LLVM
; RUN: llvm-as < %s | llc -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
|
|
}
|
|
|