36 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- -mattr=-bmi | FileCheck %s3 4; TODO: This might not be testing the original issue anymore? Should the movl still be removed?5define fastcc i32 @t() nounwind {6; CHECK-LABEL: t:7; CHECK: # %bb.0: # %entry8; CHECK-NEXT: movzwl 0, %eax9; CHECK-NEXT: movl %eax, %ecx10; CHECK-NEXT: orl $2, %ecx11; CHECK-NEXT: movw %cx, 012; CHECK-NEXT: shrl $3, %eax13; CHECK-NEXT: andl $1, %eax14; CHECK-NEXT: retl15entry:16 br i1 false, label %UnifiedReturnBlock, label %bb417bb4: ; preds = %entry18 br i1 false, label %bb17, label %bb2219bb17: ; preds = %bb420 ret i32 121bb22: ; preds = %bb422 br i1 true, label %walkExprTree.exit, label %bb4.i23bb4.i: ; preds = %bb2224 ret i32 025walkExprTree.exit: ; preds = %bb2226 %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 429 %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.lobit533UnifiedReturnBlock: ; preds = %entry34 ret i32 035}36