Skip to content

Commit 25c836b

Browse files
committed
[NFC] [InstCombine] Modify the test to match its intent
proof : https://alive2.llvm.org/ce/z/A4PJ3E
1 parent 51f6570 commit 25c836b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/Transforms/InstCombine/select-of-bittest.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,13 +590,13 @@ define i32 @n5(i32 %arg) {
590590
; CHECK-LABEL: @n5(
591591
; CHECK-NEXT: [[T:%.*]] = and i32 [[ARG:%.*]], 2
592592
; CHECK-NEXT: [[T1:%.*]] = icmp eq i32 [[T]], 0
593-
; CHECK-NEXT: [[T2:%.*]] = and i32 [[ARG]], 2
593+
; CHECK-NEXT: [[T2:%.*]] = and i32 [[ARG]], 3
594594
; CHECK-NEXT: [[T3:%.*]] = select i1 [[T1]], i32 [[T2]], i32 1
595595
; CHECK-NEXT: ret i32 [[T3]]
596596
;
597597
%t = and i32 %arg, 2
598598
%t1 = icmp eq i32 %t, 0
599-
%t2 = and i32 %arg, 2 ; 2 instead of 1
599+
%t2 = and i32 %arg, 3 ; 3 instead of 2
600600
%t3 = select i1 %t1, i32 %t2, i32 1
601601
ret i32 %t3
602602
}

0 commit comments

Comments
 (0)