@@ -48,9 +48,7 @@ define <3 x float> @load_vec3() {
4848
4949define  i32  @load_gep_const_zero_array (i64  %idx ) {
5050; 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 
5452; 
5553  %gep  = getelementptr  inbounds  [4  x i32 ], ptr  @constzeroarray , i64  0 , i64  %idx 
5654  %load  = load  i32 , ptr  %gep 
@@ -59,10 +57,7 @@ define i32 @load_gep_const_zero_array(i64 %idx) {
5957
6058define  i8  @load_i8_multi_gep_const_zero_array (i64  %idx1 , i64  %idx2 ) {
6159; 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 
6661; 
6762  %gep1  = getelementptr  inbounds  i8 , ptr  @constzeroarray , i64  %idx1 
6863  %gep  = getelementptr  inbounds  i8 , ptr  %gep1 , i64  %idx2 
0 commit comments