Home | History | Annotate | Download | only in X86
      1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
      2 ; RUN: llc < %s -mtriple=i686-pc-linux | FileCheck %s
      3 
      4 define i64 @foo(i32 %sum) {
      5 ; CHECK-LABEL: foo:
      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
     11 ; CHECK-NEXT:    retl
     12 entry:
     13   %conv = sext i32 %sum to i64
     14   %shr = lshr i64 %conv, 2
     15   %or = or i64 4611686018360279040, %shr
     16   ret i64 %or
     17 }
     18