Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr64110.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -march=core-avx2" } */
3 /* { dg-final { scan-assembler "vmovd\[\\t \]" } } */
4
5 int foo (void);
6 int a;
7 short *b;
8
9 void
10 bar (short x)
11 {
12 while (a--)
13 {
14 int i, j = foo ();
15 for (i = 0; i < j; ++i)
16 *b++ = x;
17 }
18 }