; RUN: llc < %s -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

; 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

Add '-mcpu=' to prevent breaking on ATOM due to different code schedule
Add '-mcpu=' to prevent breaking on ATOM due to different code schedule



git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@184591 91177308-0d34-0410-b5e6-96231b3b80d8
