1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-pc-linux | FileCheck %s
4 define i64 @foo(i32 %sum) {
6 ; CHECK: # %bb.0: # %entry
7 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
8 ; CHECK-NEXT: shrl $2, %eax
9 ; CHECK-NEXT: orl $-67108864, %eax # imm = 0xFC000000
10 ; CHECK-NEXT: movl $1073741823, %edx # imm = 0x3FFFFFFF
13 %conv = sext i32 %sum to i64
14 %shr = lshr i64 %conv, 2
15 %or = or i64 4611686018360279040, %shr