mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
bfc4c983a6
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127734 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
256 B
LLVM
11 lines
256 B
LLVM
; 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
|
|
}
|
|
|