mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-29 23:12:55 +01:00
d5d892d21f
llvm-svn: 184591
17 lines
336 B
LLVM
17 lines
336 B
LLVM
; RUN: llc < %s -mcpu=pentium4 -mtriple=i686-pc-linux | FileCheck %s
|
|
|
|
define i64 @foo(i32 %sum) {
|
|
entry:
|
|
%conv = sext i32 %sum to i64
|
|
%shr = lshr i64 %conv, 2
|
|
%or = or i64 4611686018360279040, %shr
|
|
ret i64 %or
|
|
}
|
|
|
|
; CHECK: foo
|
|
; CHECK: shrl $2
|
|
; CHECK: orl $-67108864
|
|
; CHECK-NOT: movl $-1
|
|
; CHECK: movl $1073741823
|
|
; CHECK: ret
|