1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-- -mattr=-bmi | FileCheck %s
4 ; TODO: This might not be testing the original issue anymore? Should the movl still be removed?
5 define fastcc i32 @t() nounwind {
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: movzwl 0, %eax
9 ; CHECK-NEXT: movl %eax, %ecx
10 ; CHECK-NEXT: orl $2, %ecx
11 ; CHECK-NEXT: movw %cx, 0
12 ; CHECK-NEXT: shrl $3, %eax
13 ; CHECK-NEXT: andl $1, %eax
16 br i1 false, label %UnifiedReturnBlock, label %bb4
18 br i1 false, label %bb17, label %bb22
22 br i1 true, label %walkExprTree.exit, label %bb4.i
23 bb4.i: ; preds = %bb22
25 walkExprTree.exit: ; preds = %bb22
26 %tmp83 = load i16, ptr null, align 4 ; <i16> [#uses=1]
27 %tmp84 = or i16 %tmp83, 2 ; <i16> [#uses=2]
28 store i16 %tmp84, ptr null, align 4
29 %tmp98993 = zext i16 %tmp84 to i32 ; <i32> [#uses=1]
30 %tmp1004 = lshr i32 %tmp98993, 3 ; <i32> [#uses=1]
31 %tmp100.lobit5 = and i32 %tmp1004, 1 ; <i32> [#uses=1]
32 ret i32 %tmp100.lobit5
33 UnifiedReturnBlock: ; preds = %entry