Debian Codegraph @

gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr83202.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_double } */
3
4 void test(double data[4][2])
5 {
6 for (int i = 0; i < 4; i++)
7 {
8 data[i][0] = data[i][0] * data[i][0];
9 data[i][1] = data[i][1] * data[i][1];
10 }
11 }
12
13 /* We should vectorize this with SLP and V2DF vectors. */
14 /* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
15 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */