@@ -44,7 +44,7 @@ define <vscale x 1 x i1> @shufflevector_nxv1i1_1() {
4444 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 1 x s1>) = G_SPLAT_VECTOR [[EVEC]](s1)
4545 ; RV64-NEXT: $v0 = COPY [[SPLAT_VECTOR]](<vscale x 1 x s1>)
4646 ; RV64-NEXT: PseudoRET implicit $v0
47- %a = shufflevector <vscale x 1 x i1 > undef , <vscale x 1 x i1 > undef , <vscale x 1 x i32 > undef
47+ %a = shufflevector <vscale x 1 x i1 > poison , <vscale x 1 x i1 > poison , <vscale x 1 x i32 > poison
4848 ret <vscale x 1 x i1 > %a
4949}
5050
@@ -114,7 +114,7 @@ define <vscale x 2 x i1> @shufflevector_nxv2i1_1() {
114114 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 2 x s1>) = G_SPLAT_VECTOR [[EVEC]](s1)
115115 ; RV64-NEXT: $v0 = COPY [[SPLAT_VECTOR]](<vscale x 2 x s1>)
116116 ; RV64-NEXT: PseudoRET implicit $v0
117- %a = shufflevector <vscale x 2 x i1 > undef , <vscale x 2 x i1 > undef , <vscale x 2 x i32 > undef
117+ %a = shufflevector <vscale x 2 x i1 > poison , <vscale x 2 x i1 > poison , <vscale x 2 x i32 > poison
118118 ret <vscale x 2 x i1 > %a
119119}
120120
@@ -184,7 +184,7 @@ define <vscale x 4 x i1> @shufflevector_nxv4i1_1() {
184184 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 4 x s1>) = G_SPLAT_VECTOR [[EVEC]](s1)
185185 ; RV64-NEXT: $v0 = COPY [[SPLAT_VECTOR]](<vscale x 4 x s1>)
186186 ; RV64-NEXT: PseudoRET implicit $v0
187- %a = shufflevector <vscale x 4 x i1 > undef , <vscale x 4 x i1 > undef , <vscale x 4 x i32 > undef
187+ %a = shufflevector <vscale x 4 x i1 > poison , <vscale x 4 x i1 > poison , <vscale x 4 x i32 > poison
188188 ret <vscale x 4 x i1 > %a
189189}
190190
@@ -254,7 +254,7 @@ define <vscale x 8 x i1> @shufflevector_nxv8i1_1() {
254254 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 8 x s1>) = G_SPLAT_VECTOR [[EVEC]](s1)
255255 ; RV64-NEXT: $v0 = COPY [[SPLAT_VECTOR]](<vscale x 8 x s1>)
256256 ; RV64-NEXT: PseudoRET implicit $v0
257- %a = shufflevector <vscale x 8 x i1 > undef , <vscale x 8 x i1 > undef , <vscale x 8 x i32 > undef
257+ %a = shufflevector <vscale x 8 x i1 > poison , <vscale x 8 x i1 > poison , <vscale x 8 x i32 > poison
258258 ret <vscale x 8 x i1 > %a
259259}
260260
@@ -324,7 +324,7 @@ define <vscale x 16 x i1> @shufflevector_nxv16i1_1() {
324324 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 16 x s1>) = G_SPLAT_VECTOR [[EVEC]](s1)
325325 ; RV64-NEXT: $v0 = COPY [[SPLAT_VECTOR]](<vscale x 16 x s1>)
326326 ; RV64-NEXT: PseudoRET implicit $v0
327- %a = shufflevector <vscale x 16 x i1 > undef , <vscale x 16 x i1 > undef , <vscale x 16 x i32 > undef
327+ %a = shufflevector <vscale x 16 x i1 > poison , <vscale x 16 x i1 > poison , <vscale x 16 x i32 > poison
328328 ret <vscale x 16 x i1 > %a
329329}
330330
@@ -394,7 +394,7 @@ define <vscale x 1 x i8> @shufflevector_nxv1i8_1() {
394394 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 1 x s8>) = G_SPLAT_VECTOR [[EVEC]](s8)
395395 ; RV64-NEXT: $v8 = COPY [[SPLAT_VECTOR]](<vscale x 1 x s8>)
396396 ; RV64-NEXT: PseudoRET implicit $v8
397- %a = shufflevector <vscale x 1 x i8 > undef , <vscale x 1 x i8 > undef , <vscale x 1 x i32 > undef
397+ %a = shufflevector <vscale x 1 x i8 > poison , <vscale x 1 x i8 > poison , <vscale x 1 x i32 > poison
398398 ret <vscale x 1 x i8 > %a
399399}
400400
@@ -464,7 +464,7 @@ define <vscale x 2 x i8> @shufflevector_nxv2i8_1() {
464464 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 2 x s8>) = G_SPLAT_VECTOR [[EVEC]](s8)
465465 ; RV64-NEXT: $v8 = COPY [[SPLAT_VECTOR]](<vscale x 2 x s8>)
466466 ; RV64-NEXT: PseudoRET implicit $v8
467- %a = shufflevector <vscale x 2 x i8 > undef , <vscale x 2 x i8 > undef , <vscale x 2 x i32 > undef
467+ %a = shufflevector <vscale x 2 x i8 > poison , <vscale x 2 x i8 > poison , <vscale x 2 x i32 > poison
468468 ret <vscale x 2 x i8 > %a
469469}
470470
@@ -534,7 +534,7 @@ define <vscale x 4 x i8> @shufflevector_nxv4i8_1() {
534534 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 4 x s8>) = G_SPLAT_VECTOR [[EVEC]](s8)
535535 ; RV64-NEXT: $v8 = COPY [[SPLAT_VECTOR]](<vscale x 4 x s8>)
536536 ; RV64-NEXT: PseudoRET implicit $v8
537- %a = shufflevector <vscale x 4 x i8 > undef , <vscale x 4 x i8 > undef , <vscale x 4 x i32 > undef
537+ %a = shufflevector <vscale x 4 x i8 > poison , <vscale x 4 x i8 > poison , <vscale x 4 x i32 > poison
538538 ret <vscale x 4 x i8 > %a
539539}
540540
@@ -604,7 +604,7 @@ define <vscale x 8 x i8> @shufflevector_nxv8i8_1() {
604604 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 8 x s8>) = G_SPLAT_VECTOR [[EVEC]](s8)
605605 ; RV64-NEXT: $v8 = COPY [[SPLAT_VECTOR]](<vscale x 8 x s8>)
606606 ; RV64-NEXT: PseudoRET implicit $v8
607- %a = shufflevector <vscale x 8 x i8 > undef , <vscale x 8 x i8 > undef , <vscale x 8 x i32 > undef
607+ %a = shufflevector <vscale x 8 x i8 > poison , <vscale x 8 x i8 > poison , <vscale x 8 x i32 > poison
608608 ret <vscale x 8 x i8 > %a
609609}
610610
@@ -674,7 +674,7 @@ define <vscale x 16 x i8> @shufflevector_nxv16i8_1() {
674674 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 16 x s8>) = G_SPLAT_VECTOR [[EVEC]](s8)
675675 ; RV64-NEXT: $v8m2 = COPY [[SPLAT_VECTOR]](<vscale x 16 x s8>)
676676 ; RV64-NEXT: PseudoRET implicit $v8m2
677- %a = shufflevector <vscale x 16 x i8 > undef , <vscale x 16 x i8 > undef , <vscale x 16 x i32 > undef
677+ %a = shufflevector <vscale x 16 x i8 > poison , <vscale x 16 x i8 > poison , <vscale x 16 x i32 > poison
678678 ret <vscale x 16 x i8 > %a
679679}
680680
@@ -744,7 +744,7 @@ define <vscale x 1 x i16> @shufflevector_nxv1i16_1() {
744744 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 1 x s16>) = G_SPLAT_VECTOR [[EVEC]](s16)
745745 ; RV64-NEXT: $v8 = COPY [[SPLAT_VECTOR]](<vscale x 1 x s16>)
746746 ; RV64-NEXT: PseudoRET implicit $v8
747- %a = shufflevector <vscale x 1 x i16 > undef , <vscale x 1 x i16 > undef , <vscale x 1 x i32 > undef
747+ %a = shufflevector <vscale x 1 x i16 > poison , <vscale x 1 x i16 > poison , <vscale x 1 x i32 > poison
748748 ret <vscale x 1 x i16 > %a
749749}
750750
@@ -814,7 +814,7 @@ define <vscale x 2 x i16> @shufflevector_nxv2i16_1() {
814814 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 2 x s16>) = G_SPLAT_VECTOR [[EVEC]](s16)
815815 ; RV64-NEXT: $v8 = COPY [[SPLAT_VECTOR]](<vscale x 2 x s16>)
816816 ; RV64-NEXT: PseudoRET implicit $v8
817- %a = shufflevector <vscale x 2 x i16 > undef , <vscale x 2 x i16 > undef , <vscale x 2 x i32 > undef
817+ %a = shufflevector <vscale x 2 x i16 > poison , <vscale x 2 x i16 > poison , <vscale x 2 x i32 > poison
818818 ret <vscale x 2 x i16 > %a
819819}
820820
@@ -884,7 +884,7 @@ define <vscale x 4 x i16> @shufflevector_nxv4i16_1() {
884884 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 4 x s16>) = G_SPLAT_VECTOR [[EVEC]](s16)
885885 ; RV64-NEXT: $v8 = COPY [[SPLAT_VECTOR]](<vscale x 4 x s16>)
886886 ; RV64-NEXT: PseudoRET implicit $v8
887- %a = shufflevector <vscale x 4 x i16 > undef , <vscale x 4 x i16 > undef , <vscale x 4 x i32 > undef
887+ %a = shufflevector <vscale x 4 x i16 > poison , <vscale x 4 x i16 > poison , <vscale x 4 x i32 > poison
888888 ret <vscale x 4 x i16 > %a
889889}
890890
@@ -954,7 +954,7 @@ define <vscale x 8 x i16> @shufflevector_nxv8i16_1() {
954954 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 8 x s16>) = G_SPLAT_VECTOR [[EVEC]](s16)
955955 ; RV64-NEXT: $v8m2 = COPY [[SPLAT_VECTOR]](<vscale x 8 x s16>)
956956 ; RV64-NEXT: PseudoRET implicit $v8m2
957- %a = shufflevector <vscale x 8 x i16 > undef , <vscale x 8 x i16 > undef , <vscale x 8 x i32 > undef
957+ %a = shufflevector <vscale x 8 x i16 > poison , <vscale x 8 x i16 > poison , <vscale x 8 x i32 > poison
958958 ret <vscale x 8 x i16 > %a
959959}
960960
@@ -1024,7 +1024,7 @@ define <vscale x 16 x i16> @shufflevector_nxv16i16_1() {
10241024 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 16 x s16>) = G_SPLAT_VECTOR [[EVEC]](s16)
10251025 ; RV64-NEXT: $v8m4 = COPY [[SPLAT_VECTOR]](<vscale x 16 x s16>)
10261026 ; RV64-NEXT: PseudoRET implicit $v8m4
1027- %a = shufflevector <vscale x 16 x i16 > undef , <vscale x 16 x i16 > undef , <vscale x 16 x i32 > undef
1027+ %a = shufflevector <vscale x 16 x i16 > poison , <vscale x 16 x i16 > poison , <vscale x 16 x i32 > poison
10281028 ret <vscale x 16 x i16 > %a
10291029}
10301030
@@ -1094,7 +1094,7 @@ define <vscale x 1 x i32> @shufflevector_nxv1i32_1() {
10941094 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 1 x s32>) = G_SPLAT_VECTOR [[EVEC]](s32)
10951095 ; RV64-NEXT: $v8 = COPY [[SPLAT_VECTOR]](<vscale x 1 x s32>)
10961096 ; RV64-NEXT: PseudoRET implicit $v8
1097- %a = shufflevector <vscale x 1 x i32 > undef , <vscale x 1 x i32 > undef , <vscale x 1 x i32 > undef
1097+ %a = shufflevector <vscale x 1 x i32 > poison , <vscale x 1 x i32 > poison , <vscale x 1 x i32 > poison
10981098 ret <vscale x 1 x i32 > %a
10991099}
11001100
@@ -1164,7 +1164,7 @@ define <vscale x 2 x i32> @shufflevector_nxv2i32_1() {
11641164 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 2 x s32>) = G_SPLAT_VECTOR [[EVEC]](s32)
11651165 ; RV64-NEXT: $v8 = COPY [[SPLAT_VECTOR]](<vscale x 2 x s32>)
11661166 ; RV64-NEXT: PseudoRET implicit $v8
1167- %a = shufflevector <vscale x 2 x i32 > undef , <vscale x 2 x i32 > undef , <vscale x 2 x i32 > undef
1167+ %a = shufflevector <vscale x 2 x i32 > poison , <vscale x 2 x i32 > poison , <vscale x 2 x i32 > poison
11681168 ret <vscale x 2 x i32 > %a
11691169}
11701170
@@ -1234,7 +1234,7 @@ define <vscale x 4 x i32> @shufflevector_nxv4i32_1() {
12341234 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 4 x s32>) = G_SPLAT_VECTOR [[EVEC]](s32)
12351235 ; RV64-NEXT: $v8m2 = COPY [[SPLAT_VECTOR]](<vscale x 4 x s32>)
12361236 ; RV64-NEXT: PseudoRET implicit $v8m2
1237- %a = shufflevector <vscale x 4 x i32 > undef , <vscale x 4 x i32 > undef , <vscale x 4 x i32 > undef
1237+ %a = shufflevector <vscale x 4 x i32 > poison , <vscale x 4 x i32 > poison , <vscale x 4 x i32 > poison
12381238 ret <vscale x 4 x i32 > %a
12391239}
12401240
@@ -1304,7 +1304,7 @@ define <vscale x 8 x i32> @shufflevector_nxv8i32_1() {
13041304 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 8 x s32>) = G_SPLAT_VECTOR [[EVEC]](s32)
13051305 ; RV64-NEXT: $v8m4 = COPY [[SPLAT_VECTOR]](<vscale x 8 x s32>)
13061306 ; RV64-NEXT: PseudoRET implicit $v8m4
1307- %a = shufflevector <vscale x 8 x i32 > undef , <vscale x 8 x i32 > undef , <vscale x 8 x i32 > undef
1307+ %a = shufflevector <vscale x 8 x i32 > poison , <vscale x 8 x i32 > poison , <vscale x 8 x i32 > poison
13081308 ret <vscale x 8 x i32 > %a
13091309}
13101310
@@ -1374,7 +1374,7 @@ define <vscale x 16 x i32> @shufflevector_nxv16i32_1() {
13741374 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 16 x s32>) = G_SPLAT_VECTOR [[EVEC]](s32)
13751375 ; RV64-NEXT: $v8m8 = COPY [[SPLAT_VECTOR]](<vscale x 16 x s32>)
13761376 ; RV64-NEXT: PseudoRET implicit $v8m8
1377- %a = shufflevector <vscale x 16 x i32 > undef , <vscale x 16 x i32 > undef , <vscale x 16 x i32 > undef
1377+ %a = shufflevector <vscale x 16 x i32 > poison , <vscale x 16 x i32 > poison , <vscale x 16 x i32 > poison
13781378 ret <vscale x 16 x i32 > %a
13791379}
13801380
@@ -1444,7 +1444,7 @@ define <vscale x 1 x i64> @shufflevector_nxv1i64_1() {
14441444 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 1 x s64>) = G_SPLAT_VECTOR [[EVEC]](s64)
14451445 ; RV64-NEXT: $v8 = COPY [[SPLAT_VECTOR]](<vscale x 1 x s64>)
14461446 ; RV64-NEXT: PseudoRET implicit $v8
1447- %a = shufflevector <vscale x 1 x i64 > undef , <vscale x 1 x i64 > undef , <vscale x 1 x i32 > undef
1447+ %a = shufflevector <vscale x 1 x i64 > poison , <vscale x 1 x i64 > poison , <vscale x 1 x i32 > poison
14481448 ret <vscale x 1 x i64 > %a
14491449}
14501450
@@ -1514,7 +1514,7 @@ define <vscale x 2 x i64> @shufflevector_nxv2i64_1() {
15141514 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 2 x s64>) = G_SPLAT_VECTOR [[EVEC]](s64)
15151515 ; RV64-NEXT: $v8m2 = COPY [[SPLAT_VECTOR]](<vscale x 2 x s64>)
15161516 ; RV64-NEXT: PseudoRET implicit $v8m2
1517- %a = shufflevector <vscale x 2 x i64 > undef , <vscale x 2 x i64 > undef , <vscale x 2 x i32 > undef
1517+ %a = shufflevector <vscale x 2 x i64 > poison , <vscale x 2 x i64 > poison , <vscale x 2 x i32 > poison
15181518 ret <vscale x 2 x i64 > %a
15191519}
15201520
@@ -1584,7 +1584,7 @@ define <vscale x 4 x i64> @shufflevector_nxv4i64_1() {
15841584 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 4 x s64>) = G_SPLAT_VECTOR [[EVEC]](s64)
15851585 ; RV64-NEXT: $v8m4 = COPY [[SPLAT_VECTOR]](<vscale x 4 x s64>)
15861586 ; RV64-NEXT: PseudoRET implicit $v8m4
1587- %a = shufflevector <vscale x 4 x i64 > undef , <vscale x 4 x i64 > undef , <vscale x 4 x i32 > undef
1587+ %a = shufflevector <vscale x 4 x i64 > poison , <vscale x 4 x i64 > poison , <vscale x 4 x i32 > poison
15881588 ret <vscale x 4 x i64 > %a
15891589}
15901590
@@ -1654,7 +1654,7 @@ define <vscale x 8 x i64> @shufflevector_nxv8i64_1() {
16541654 ; RV64-NEXT: [[SPLAT_VECTOR:%[0-9]+]]:_(<vscale x 8 x s64>) = G_SPLAT_VECTOR [[EVEC]](s64)
16551655 ; RV64-NEXT: $v8m8 = COPY [[SPLAT_VECTOR]](<vscale x 8 x s64>)
16561656 ; RV64-NEXT: PseudoRET implicit $v8m8
1657- %a = shufflevector <vscale x 8 x i64 > undef , <vscale x 8 x i64 > undef , <vscale x 8 x i32 > undef
1657+ %a = shufflevector <vscale x 8 x i64 > poison , <vscale x 8 x i64 > poison , <vscale x 8 x i32 > poison
16581658 ret <vscale x 8 x i64 > %a
16591659}
16601660
@@ -1732,7 +1732,7 @@ define <vscale x 16 x i64> @shufflevector_nxv16i64_1() {
17321732 ; RV64-NEXT: $v8m8 = COPY [[UV]](<vscale x 8 x s64>)
17331733 ; RV64-NEXT: $v16m8 = COPY [[UV1]](<vscale x 8 x s64>)
17341734 ; RV64-NEXT: PseudoRET implicit $v8m8, implicit $v16m8
1735- %a = shufflevector <vscale x 16 x i64 > undef , <vscale x 16 x i64 > undef , <vscale x 16 x i32 > undef
1735+ %a = shufflevector <vscale x 16 x i64 > poison , <vscale x 16 x i64 > poison , <vscale x 16 x i32 > poison
17361736 ret <vscale x 16 x i64 > %a
17371737}
17381738
0 commit comments