We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51f6570 commit 25c836bCopy full SHA for 25c836b
llvm/test/Transforms/InstCombine/select-of-bittest.ll
@@ -590,13 +590,13 @@ define i32 @n5(i32 %arg) {
590
; CHECK-LABEL: @n5(
591
; CHECK-NEXT: [[T:%.*]] = and i32 [[ARG:%.*]], 2
592
; CHECK-NEXT: [[T1:%.*]] = icmp eq i32 [[T]], 0
593
-; CHECK-NEXT: [[T2:%.*]] = and i32 [[ARG]], 2
+; CHECK-NEXT: [[T2:%.*]] = and i32 [[ARG]], 3
594
; CHECK-NEXT: [[T3:%.*]] = select i1 [[T1]], i32 [[T2]], i32 1
595
; CHECK-NEXT: ret i32 [[T3]]
596
;
597
%t = and i32 %arg, 2
598
%t1 = icmp eq i32 %t, 0
599
- %t2 = and i32 %arg, 2 ; 2 instead of 1
+ %t2 = and i32 %arg, 3 ; 3 instead of 2
600
%t3 = select i1 %t1, i32 %t2, i32 1
601
ret i32 %t3
602
}
0 commit comments