Debian Codegraph @

gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-vect-slp-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-fdump-tree-slp-details" } */
3
4 int a[4], b[4];
5 void foo()
6 {
7 a[0] = b[0] / 7;
8 a[1] = b[1] / 7;
9 a[2] = b[2] / 7;
10 a[3] = b[3] / 7;
11 }
12
13 /* We should cost the original division stmt, not the scalar pattern stmts. */
14 /* { dg-final { scan-tree-dump-times " / 7 1 times scalar_stmt costs" 4 "slp2" } } */