1 ; RUN: llc < %s -mcpu=pentium4 -mtriple=i686-pc-linux | FileCheck %s 2 3 define i64 @foo(i32 %sum) { 4 entry: 5 %conv = sext i32 %sum to i64 6 %shr = lshr i64 %conv, 2 7 %or = or i64 4611686018360279040, %shr 8 ret i64 %or 9 } 10 11 ; CHECK: foo 12 ; CHECK: shrl $2 13 ; CHECK: orl $-67108864 14 ; CHECK-NOT: movl $-1 15 ; CHECK: movl $1073741823 16 ; CHECK: ret 17