Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/cost_model_12.c

raw
1 /* { dg-options "-O3 -mtune=neoverse-512tvb" } */
2
3 void
4 f (float x[restrict 10][1024],
5 float y[restrict 10][1024], float z)
6 {
7 for (int i = 0; i < 10; ++i)
8 {
9 #pragma GCC unroll 10
10 for (int j = 0; j < 10; ++j)
11 x[j][i] = y[j][i] * z;
12 }
13 }
14
15 /* We should unroll the outer loop, with 2x 16-byte vectors and 1x
16 8-byte vectors. */
17 /* { dg-final { scan-assembler-not {\tptrue\t} } } */
18 /* { dg-final { scan-assembler {\tv[0-9]+\.4s,} } } */
19 /* { dg-final { scan-assembler {\tv[0-9]+\.2s,} } } */