mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
7fd500c31d
llvm-svn: 127734
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
|
|
}
|
|
|