36 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s3 4; Make sure dagcombine doesn't eliminate the comparison due5; to an off-by-one bug with computeKnownBits information.6 7declare void @qux()8 9define void @foo(i32 %a) {10; CHECK-LABEL: foo:11; CHECK: # %bb.0:12; CHECK-NEXT: shrl $23, %edi13; CHECK-NEXT: testl $256, %edi # imm = 0x10014; CHECK-NEXT: jne .LBB0_215; CHECK-NEXT: # %bb.1: # %true16; CHECK-NEXT: pushq %rax17; CHECK-NEXT: .cfi_def_cfa_offset 1618; CHECK-NEXT: callq qux@PLT19; CHECK-NEXT: popq %rax20; CHECK-NEXT: .cfi_def_cfa_offset 821; CHECK-NEXT: .LBB0_2: # %false22; CHECK-NEXT: retq23 %t0 = lshr i32 %a, 2324 br label %next25next:26 %t1 = and i32 %t0, 25627 %t2 = icmp eq i32 %t1, 028 br i1 %t2, label %true, label %false29true:30 call void @qux()31 ret void32false:33 ret void34}35 36