6 static const long cmp
[4][4] = {
7 { 110, 134, 158, 182 },
8 { 390, 478, 566, 654 },
9 { 670, 822, 974, 1126 },
10 { 950, 1166, 1382, 1598 }
13 long *tmp
= &dst
[0][0];
16 /* Validate that we have a wide enough vector for 4 elements. */
17 asm(".arch armv8-r+sme-i64\n\trdsvl %0, #1" : "=r"(svl
));
24 "index z0.h, #0, #1\n\t"
26 "add z1.h, z1.h, #16\n\t"
28 "smopa za0.d, p0/m, p0/m, z0.h, z1.h\n\t"
31 "st1d { za0h.d[w12, #0] }, p0, [%0]\n\t"
33 "st1d { za0h.d[w12, #1] }, p0, [%0]\n\t"
36 "st1d { za0h.d[w12, #0] }, p0, [%0]\n\t"
38 "st1d { za0h.d[w12, #1] }, p0, [%0]\n\t"
40 : "+r"(tmp
) : : "memory");
42 if (memcmp(cmp
, dst
, sizeof(dst
)) == 0) {
46 /* See above for correct results. */
47 for (int i
= 0; i
< 4; ++i
) {
48 for (int j
= 0; j
< 4; ++j
) {
49 printf("%6ld", dst
[i
][j
]);