@@ -48,9 +48,7 @@ define <3 x float> @load_vec3() {
48
48
49
49
define i32 @load_gep_const_zero_array (i64 %idx ) {
50
50
; CHECK-LABEL: @load_gep_const_zero_array(
51
- ; CHECK-NEXT: [[GEP:%.*]] = getelementptr inbounds [4 x i32], ptr @constzeroarray, i64 0, i64 [[IDX:%.*]]
52
- ; CHECK-NEXT: [[LOAD:%.*]] = load i32, ptr [[GEP]], align 4
53
- ; CHECK-NEXT: ret i32 [[LOAD]]
51
+ ; CHECK-NEXT: ret i32 0
54
52
;
55
53
%gep = getelementptr inbounds [4 x i32 ], ptr @constzeroarray , i64 0 , i64 %idx
56
54
%load = load i32 , ptr %gep
@@ -59,10 +57,7 @@ define i32 @load_gep_const_zero_array(i64 %idx) {
59
57
60
58
define i8 @load_i8_multi_gep_const_zero_array (i64 %idx1 , i64 %idx2 ) {
61
59
; CHECK-LABEL: @load_i8_multi_gep_const_zero_array(
62
- ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds i8, ptr @constzeroarray, i64 [[IDX1:%.*]]
63
- ; CHECK-NEXT: [[GEP:%.*]] = getelementptr inbounds i8, ptr [[GEP1]], i64 [[IDX2:%.*]]
64
- ; CHECK-NEXT: [[LOAD:%.*]] = load i8, ptr [[GEP]], align 1
65
- ; CHECK-NEXT: ret i8 [[LOAD]]
60
+ ; CHECK-NEXT: ret i8 0
66
61
;
67
62
%gep1 = getelementptr inbounds i8 , ptr @constzeroarray , i64 %idx1
68
63
%gep = getelementptr inbounds i8 , ptr %gep1 , i64 %idx2
0 commit comments