mve: Fix vsetq_lane for 64-bit elements with lane 1 [PR 115611]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr54894.c
blobf243ec78802f944fc88f86e43b2a0ec8ac28f448
1 /* { dg-do compile } */
2 /* { dg-require-effective-target size32plus } */
4 typedef unsigned long long uint64_t;
6 #define n 4096
7 double A[n][n] __attribute__((aligned(16)));
8 double B[n][n] __attribute__((aligned(16)));
9 double C[n][n] __attribute__((aligned(16)));
11 #define tilesize 128
13 typedef double adouble __attribute__((__aligned__(16)));
15 void foo ()
17 int ih, jh, kh, il, kl, jl;
18 for (ih = 0; ih < n; ih += tilesize)
19 for (jh = 0; jh < n; jh += tilesize)
20 for (kh = 0; kh < n; kh += tilesize)
21 for (il = 0; il < tilesize; ++il)
23 adouble *Ap = (adouble *)&A[ih+il][kh];
24 for (kl = 0; kl < tilesize; ++kl)
25 for (jl = 0; jl < tilesize; ++jl)
26 C[ih+il][jh+jl] += Ap[kl] * B[kh+kl][jh+jl];