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 920ef7c commit 2ec9d2eCopy full SHA for 2ec9d2e
llvm/test/Transforms/ConstraintElimination/overflows.ll
@@ -18,6 +18,14 @@ bb:
18
}
19
20
define i1 @test_overflow_in_negate_constraint(i8 %x, i64 %y) {
21
+; CHECK-LABEL: define i1 @test_overflow_in_negate_constraint
22
+; CHECK-SAME: (i8 [[X:%.*]], i64 [[Y:%.*]]) {
23
+; CHECK-NEXT: bb:
24
+; CHECK-NEXT: [[ZEXT:%.*]] = zext i8 [[X]] to i64
25
+; CHECK-NEXT: [[SHL:%.*]] = shl nuw nsw i64 [[ZEXT]], 63
26
+; CHECK-NEXT: [[ICMP:%.*]] = icmp uge i64 [[Y]], [[SHL]]
27
+; CHECK-NEXT: ret i1 [[ICMP]]
28
+;
29
bb:
30
%zext = zext i8 %x to i64
31
%shl = shl nuw nsw i64 %zext, 63
0 commit comments