@@ -9,7 +9,7 @@ define i1 @test_outer_gep_last_index_no_overflow_all_inbounds(ptr %dst) {
9
9
; CHECK-NEXT: [[UPPER:%.*]] = getelementptr inbounds ptr, ptr [[DST]], i64 2
10
10
; CHECK-NEXT: [[GEP_1:%.*]] = getelementptr inbounds [2 x i32], ptr [[DST_0]], i64 1, i64 1
11
11
; CHECK-NEXT: [[C_1:%.*]] = icmp ult ptr [[GEP_1]], [[UPPER]]
12
- ; CHECK-NEXT: ret i1 true
12
+ ; CHECK-NEXT: ret i1 [[C_1]]
13
13
;
14
14
%dst.0 = getelementptr inbounds ptr , ptr %dst , i64 0
15
15
%upper = getelementptr inbounds ptr , ptr %dst , i64 2
@@ -24,7 +24,7 @@ define i1 @test_outer_gep_last_index_overflow_all_inbounds(ptr %dst) {
24
24
; CHECK-NEXT: [[UPPER:%.*]] = getelementptr inbounds ptr, ptr [[DST]], i64 2
25
25
; CHECK-NEXT: [[GEP_1:%.*]] = getelementptr inbounds [2 x i32], ptr [[DST_0]], i64 1, i64 2
26
26
; CHECK-NEXT: [[C:%.*]] = icmp ult ptr [[GEP_1]], [[UPPER]]
27
- ; CHECK-NEXT: ret i1 true
27
+ ; CHECK-NEXT: ret i1 [[C]]
28
28
;
29
29
%dst.0 = getelementptr inbounds ptr , ptr %dst , i64 0
30
30
%upper = getelementptr inbounds ptr , ptr %dst , i64 2
@@ -40,7 +40,7 @@ define i1 @test_inner_gep_multiple_indices_ult_true_all_inbounds(ptr %dst) {
40
40
; CHECK-NEXT: [[GEP_1:%.*]] = getelementptr inbounds i32, ptr [[DST_0]], i64 1
41
41
; CHECK-NEXT: [[C:%.*]] = icmp ult ptr [[GEP_1]], [[UPPER]]
42
42
; CHECK-NEXT: [[C_2:%.*]] = icmp uge ptr [[GEP_1]], [[DST_0]]
43
- ; CHECK-NEXT: ret i1 [[C]]
43
+ ; CHECK-NEXT: ret i1 true
44
44
;
45
45
%dst.0 = getelementptr inbounds [2 x i32 ], ptr %dst , i64 0 , i64 0
46
46
%upper = getelementptr inbounds [2 x i32 ], ptr %dst , i64 0 , i64 2
@@ -56,7 +56,7 @@ define i1 @test_inner_gep_multiple_indices_uge_true_all_inbounds(ptr %dst) {
56
56
; CHECK-NEXT: [[UPPER:%.*]] = getelementptr inbounds [2 x i32], ptr [[DST]], i64 0, i64 2
57
57
; CHECK-NEXT: [[GEP_1:%.*]] = getelementptr inbounds i32, ptr [[DST_0]], i64 1
58
58
; CHECK-NEXT: [[C:%.*]] = icmp uge ptr [[GEP_1]], [[DST_0]]
59
- ; CHECK-NEXT: ret i1 [[C]]
59
+ ; CHECK-NEXT: ret i1 true
60
60
;
61
61
%dst.0 = getelementptr inbounds [2 x i32 ], ptr %dst , i64 0 , i64 0
62
62
%upper = getelementptr inbounds [2 x i32 ], ptr %dst , i64 0 , i64 2
@@ -72,7 +72,7 @@ define i1 @test_inner_gep_multiple_indices_ult_false_all_inbounds(ptr %dst) {
72
72
; CHECK-NEXT: [[UPPER:%.*]] = getelementptr inbounds [2 x i32], ptr [[DST]], i64 0, i64 2
73
73
; CHECK-NEXT: [[GEP_1:%.*]] = getelementptr inbounds i32, ptr [[DST_0]], i64 2
74
74
; CHECK-NEXT: [[C:%.*]] = icmp ult ptr [[GEP_1]], [[UPPER]]
75
- ; CHECK-NEXT: ret i1 [[C]]
75
+ ; CHECK-NEXT: ret i1 false
76
76
;
77
77
entry:
78
78
%dst.0 = getelementptr inbounds [2 x i32 ], ptr %dst , i64 0 , i64 0
@@ -89,7 +89,7 @@ define i1 @test_inner_gep_multiple_indices_uge_true_all_inbounds_2(ptr %dst) {
89
89
; CHECK-NEXT: [[UPPER:%.*]] = getelementptr inbounds [2 x i32], ptr [[DST]], i64 0, i64 2
90
90
; CHECK-NEXT: [[GEP_1:%.*]] = getelementptr inbounds i32, ptr [[DST_0]], i64 2
91
91
; CHECK-NEXT: [[C:%.*]] = icmp uge ptr [[GEP_1]], [[DST_0]]
92
- ; CHECK-NEXT: ret i1 [[C]]
92
+ ; CHECK-NEXT: ret i1 true
93
93
;
94
94
entry:
95
95
%dst.0 = getelementptr inbounds [2 x i32 ], ptr %dst , i64 0 , i64 0
0 commit comments