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 c624027 commit da94a2bCopy full SHA for da94a2b
llvm/test/Transforms/InstSimplify/compare.ll
@@ -2877,13 +2877,13 @@ define i1 @neg_icmp_lshr_known_non_zero_ult_no_nuw(i8 %x) {
2877
; CHECK-NEXT: [[OR:%.*]] = or i8 [[X:%.*]], 1
2878
; CHECK-NEXT: [[X1:%.*]] = shl i8 [[OR]], 1
2879
; CHECK-NEXT: [[X2:%.*]] = shl i8 [[OR]], 2
2880
-; CHECK-NEXT: [[CMP:%.*]] = icmp slt i8 [[X1]], [[X2]]
+; CHECK-NEXT: [[CMP:%.*]] = icmp ult i8 [[X1]], [[X2]]
2881
; CHECK-NEXT: ret i1 [[CMP]]
2882
;
2883
%or = or i8 %x, 1
2884
%x1 = shl i8 %or, 1
2885
%x2 = shl i8 %or, 2
2886
- %cmp = icmp slt i8 %x1, %x2
+ %cmp = icmp ult i8 %x1, %x2
2887
ret i1 %cmp
2888
}
2889
0 commit comments