annotate gcc/testsuite/gcc.dg/torture/pr54894.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-require-effective-target size32plus } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 typedef unsigned long long uint64_t;
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 #define n 4096
kono
parents:
diff changeset
7 double A[n][n] __attribute__((aligned(16)));
kono
parents:
diff changeset
8 double B[n][n] __attribute__((aligned(16)));
kono
parents:
diff changeset
9 double C[n][n] __attribute__((aligned(16)));
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 #define tilesize 128
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 typedef double adouble __attribute__((__aligned__(16)));
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 void foo ()
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 int ih, jh, kh, il, kl, jl;
kono
parents:
diff changeset
18 for (ih = 0; ih < n; ih += tilesize)
kono
parents:
diff changeset
19 for (jh = 0; jh < n; jh += tilesize)
kono
parents:
diff changeset
20 for (kh = 0; kh < n; kh += tilesize)
kono
parents:
diff changeset
21 for (il = 0; il < tilesize; ++il)
kono
parents:
diff changeset
22 {
kono
parents:
diff changeset
23 adouble *Ap = (adouble *)&A[ih+il][kh];
kono
parents:
diff changeset
24 for (kl = 0; kl < tilesize; ++kl)
kono
parents:
diff changeset
25 for (jl = 0; jl < tilesize; ++jl)
kono
parents:
diff changeset
26 C[ih+il][jh+jl] += Ap[kl] * B[kh+kl][jh+jl];
kono
parents:
diff changeset
27 }
kono
parents:
diff changeset
28 }