1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2 ; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s 3 4 define i32 @t1(i8 zeroext %x) nounwind { 5 ; CHECK-LABEL: t1: 6 ; CHECK: # %bb.0: 7 ; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %eax 8 ; CHECK-NEXT: shll $5, %eax 9 ; CHECK-NEXT: retl 10 %t0 = zext i8 %x to i16 11 %t1 = shl i16 %t0, 5 12 %t2 = zext i16 %t1 to i32 13 ret i32 %t2 14 } 15 16 define i32 @t2(i8 zeroext %x) nounwind { 17 ; CHECK-LABEL: t2: 18 ; CHECK: # %bb.0: 19 ; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %eax 20 ; CHECK-NEXT: shrl $3, %eax 21 ; CHECK-NEXT: retl 22 %t0 = zext i8 %x to i16 23 %t1 = lshr i16 %t0, 3 24 %t2 = zext i16 %t1 to i32 25 ret i32 %t2 26 } 27