Skip to content

Commit c3a7b12

Browse files
committed
Use indices from 0, since we're not testing splats of segments beyond the first yet
1 parent 4307923 commit c3a7b12

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/test/CodeGen/AArch64/sve-fixed-length-splat-segment.ll

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ define void @concat_i16q_256(<8 x i16> %data, ptr %addr) #0 {
2323
; CHECK-NEXT: mov z0.q, q0
2424
; CHECK-NEXT: str z0, [x0]
2525
; CHECK-NEXT: ret
26-
%splat = shufflevector <8 x i16> poison, <8 x i16> %data, <16 x i32> <i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15,
27-
i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
26+
%splat = shufflevector <8 x i16> %data, <8 x i16> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7,
27+
i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
2828
store <16 x i16> %splat, ptr %addr, align 1
2929
ret void
3030
}
@@ -49,8 +49,8 @@ define void @concat_i64q_256(<2 x i64> %data, ptr %addr) #0 {
4949
; CHECK-NEXT: mov z0.q, q0
5050
; CHECK-NEXT: str z0, [x0]
5151
; CHECK-NEXT: ret
52-
%splat = shufflevector <2 x i64> poison, <2 x i64> %data, <4 x i32> <i32 2, i32 3,
53-
i32 2, i32 3>
52+
%splat = shufflevector <2 x i64> %data, <2 x i64> poison, <4 x i32> <i32 0, i32 1,
53+
i32 0, i32 1>
5454
store <4 x i64> %splat, ptr %addr, align 1
5555
ret void
5656
}
@@ -62,8 +62,8 @@ define void @concat_f16q_256(<8 x half> %data, ptr %addr) #0 {
6262
; CHECK-NEXT: mov z0.q, q0
6363
; CHECK-NEXT: str z0, [x0]
6464
; CHECK-NEXT: ret
65-
%splat = shufflevector <8 x half> poison, <8 x half> %data, <16 x i32> <i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15,
66-
i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
65+
%splat = shufflevector <8 x half> %data, <8 x half> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7,
66+
i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
6767
store <16 x half> %splat, ptr %addr, align 1
6868
ret void
6969
}
@@ -73,8 +73,8 @@ define void @concat_bf16q_256(<8 x bfloat> %data, ptr %addr) #0 {
7373
; CHECK: // %bb.0:
7474
; CHECK-NEXT: stp q0, q0, [x0]
7575
; CHECK-NEXT: ret
76-
%splat = shufflevector <8 x bfloat> poison, <8 x bfloat> %data, <16 x i32> <i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15,
77-
i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
76+
%splat = shufflevector <8 x bfloat> %data, <8 x bfloat> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7,
77+
i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
7878
store <16 x bfloat> %splat, ptr %addr, align 1
7979
ret void
8080
}
@@ -99,8 +99,8 @@ define void @concat_f64q_256(<2 x double> %data, ptr %addr) #0 {
9999
; CHECK-NEXT: mov z0.q, q0
100100
; CHECK-NEXT: str z0, [x0]
101101
; CHECK-NEXT: ret
102-
%splat = shufflevector <2 x double> poison, <2 x double> %data, <4 x i32> <i32 2, i32 3,
103-
i32 2, i32 3>
102+
%splat = shufflevector <2 x double> %data, <2 x double> poison, <4 x i32> <i32 0, i32 1,
103+
i32 0, i32 1>
104104
store <4 x double> %splat, ptr %addr, align 1
105105
ret void
106106
}

0 commit comments

Comments
 (0)