@@ -193,13 +193,13 @@ define <16 x i8> @replace_var_v16i8(<16 x i8> %v, i32 %i, i8 %x) {
193
193
ret <16 x i8 > %res
194
194
}
195
195
196
- ; CHECK-LABEL: replace_undef_v16i8 :
196
+ ; CHECK-LABEL: replace_zero_v16i8 :
197
197
; NO-SIMD128-NOT: i8x16
198
- ; SIMD128-NEXT: .functype replace_undef_v16i8 (v128, i32) -> (v128){{$}}
198
+ ; SIMD128-NEXT: .functype replace_zero_v16i8 (v128, i32) -> (v128){{$}}
199
199
; SIMD128-NEXT: i8x16.replace_lane $push[[R:[0-9]+]]=, $0, 0, $1{{$}}
200
200
; SIMD128-NEXT: return $pop[[R]]{{$}}
201
- define <16 x i8 > @replace_undef_v16i8 (<16 x i8 > %v , i8 %x ) {
202
- %res = insertelement <16 x i8 > %v , i8 %x , i32 undef
201
+ define <16 x i8 > @replace_zero_v16i8 (<16 x i8 > %v , i8 %x ) {
202
+ %res = insertelement <16 x i8 > %v , i8 %x , i32 0
203
203
ret <16 x i8 > %res
204
204
}
205
205
@@ -464,13 +464,13 @@ define <8 x i16> @replace_var_v8i16(<8 x i16> %v, i32 %i, i16 %x) {
464
464
ret <8 x i16 > %res
465
465
}
466
466
467
- ; CHECK-LABEL: replace_undef_v8i16 :
467
+ ; CHECK-LABEL: replace_zero_v8i16 :
468
468
; NO-SIMD128-NOT: i16x8
469
- ; SIMD128-NEXT: .functype replace_undef_v8i16 (v128, i32) -> (v128){{$}}
469
+ ; SIMD128-NEXT: .functype replace_zero_v8i16 (v128, i32) -> (v128){{$}}
470
470
; SIMD128-NEXT: i16x8.replace_lane $push[[R:[0-9]+]]=, $0, 0, $1{{$}}
471
471
; SIMD128-NEXT: return $pop[[R]]{{$}}
472
- define <8 x i16 > @replace_undef_v8i16 (<8 x i16 > %v , i16 %x ) {
473
- %res = insertelement <8 x i16 > %v , i16 %x , i32 undef
472
+ define <8 x i16 > @replace_zero_v8i16 (<8 x i16 > %v , i16 %x ) {
473
+ %res = insertelement <8 x i16 > %v , i16 %x , i32 0
474
474
ret <8 x i16 > %res
475
475
}
476
476
@@ -625,13 +625,13 @@ define <4 x i32> @replace_var_v4i32(<4 x i32> %v, i32 %i, i32 %x) {
625
625
ret <4 x i32 > %res
626
626
}
627
627
628
- ; CHECK-LABEL: replace_undef_v4i32 :
628
+ ; CHECK-LABEL: replace_zero_v4i32 :
629
629
; NO-SIMD128-NOT: i32x4
630
- ; SIMD128-NEXT: .functype replace_undef_v4i32 (v128, i32) -> (v128){{$}}
630
+ ; SIMD128-NEXT: .functype replace_zero_v4i32 (v128, i32) -> (v128){{$}}
631
631
; SIMD128-NEXT: i32x4.replace_lane $push[[R:[0-9]+]]=, $0, 0, $1{{$}}
632
632
; SIMD128-NEXT: return $pop[[R]]{{$}}
633
- define <4 x i32 > @replace_undef_v4i32 (<4 x i32 > %v , i32 %x ) {
634
- %res = insertelement <4 x i32 > %v , i32 %x , i32 undef
633
+ define <4 x i32 > @replace_zero_v4i32 (<4 x i32 > %v , i32 %x ) {
634
+ %res = insertelement <4 x i32 > %v , i32 %x , i32 0
635
635
ret <4 x i32 > %res
636
636
}
637
637
@@ -781,14 +781,14 @@ define <2 x i64> @replace_var_v2i64(<2 x i64> %v, i32 %i, i64 %x) {
781
781
ret <2 x i64 > %res
782
782
}
783
783
784
- ; CHECK-LABEL: replace_undef_v2i64 :
784
+ ; CHECK-LABEL: replace_zero_v2i64 :
785
785
; NO-SIMD128-NOT: i64x2
786
786
; SIMD128-VM-NOT: i64x2
787
- ; SIMD128-NEXT: .functype replace_undef_v2i64 (v128, i64) -> (v128){{$}}
787
+ ; SIMD128-NEXT: .functype replace_zero_v2i64 (v128, i64) -> (v128){{$}}
788
788
; SIMD128-NEXT: i64x2.replace_lane $push[[R:[0-9]+]]=, $0, 0, $1{{$}}
789
789
; SIMD128-NEXT: return $pop[[R]]{{$}}
790
- define <2 x i64 > @replace_undef_v2i64 (<2 x i64 > %v , i64 %x ) {
791
- %res = insertelement <2 x i64 > %v , i64 %x , i32 undef
790
+ define <2 x i64 > @replace_zero_v2i64 (<2 x i64 > %v , i64 %x ) {
791
+ %res = insertelement <2 x i64 > %v , i64 %x , i32 0
792
792
ret <2 x i64 > %res
793
793
}
794
794
@@ -931,13 +931,13 @@ define <4 x float> @replace_var_v4f32(<4 x float> %v, i32 %i, float %x) {
931
931
ret <4 x float > %res
932
932
}
933
933
934
- ; CHECK-LABEL: replace_undef_v4f32 :
934
+ ; CHECK-LABEL: replace_zero_v4f32 :
935
935
; NO-SIMD128-NOT: f32x4
936
- ; SIMD128-NEXT: .functype replace_undef_v4f32 (v128, f32) -> (v128){{$}}
936
+ ; SIMD128-NEXT: .functype replace_zero_v4f32 (v128, f32) -> (v128){{$}}
937
937
; SIMD128-NEXT: f32x4.replace_lane $push[[R:[0-9]+]]=, $0, 0, $1{{$}}
938
938
; SIMD128-NEXT: return $pop[[R]]{{$}}
939
- define <4 x float > @replace_undef_v4f32 (<4 x float > %v , float %x ) {
940
- %res = insertelement <4 x float > %v , float %x , i32 undef
939
+ define <4 x float > @replace_zero_v4f32 (<4 x float > %v , float %x ) {
940
+ %res = insertelement <4 x float > %v , float %x , i32 0
941
941
ret <4 x float > %res
942
942
}
943
943
@@ -1086,14 +1086,14 @@ define <2 x double> @replace_var_v2f64(<2 x double> %v, i32 %i, double %x) {
1086
1086
ret <2 x double > %res
1087
1087
}
1088
1088
1089
- ; CHECK-LABEL: replace_undef_v2f64 :
1089
+ ; CHECK-LABEL: replace_zero_v2f64 :
1090
1090
; NO-SIMD128-NOT: f64x2
1091
1091
; SIMD128-VM-NOT: f64x2
1092
- ; SIMD128-NEXT: .functype replace_undef_v2f64 (v128, f64) -> (v128){{$}}
1092
+ ; SIMD128-NEXT: .functype replace_zero_v2f64 (v128, f64) -> (v128){{$}}
1093
1093
; SIMD128-NEXT: f64x2.replace_lane $push[[R:[0-9]+]]=, $0, 0, $1{{$}}
1094
1094
; SIMD128-NEXT: return $pop[[R]]{{$}}
1095
- define <2 x double > @replace_undef_v2f64 (<2 x double > %v , double %x ) {
1096
- %res = insertelement <2 x double > %v , double %x , i32 undef
1095
+ define <2 x double > @replace_zero_v2f64 (<2 x double > %v , double %x ) {
1096
+ %res = insertelement <2 x double > %v , double %x , i32 0
1097
1097
ret <2 x double > %res
1098
1098
}
1099
1099
0 commit comments