Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr112891.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mavx2 -O3" } */
3 /* { dg-final { scan-assembler-times "vzeroupper" 1 } } */
4
5 void
6 __attribute__((noinline))
7 bar (double* a)
8 {
9 a[0] = 1.0;
10 a[1] = 2.0;
11 }
12
13 void
14 __attribute__((noinline))
15 foo (double* __restrict a, double* b)
16 {
17 a[0] += b[0];
18 a[1] += b[1];
19 a[2] += b[2];
20 a[3] += b[3];
21 bar (b);
22 }
23
24 double
25 foo1 (double* __restrict a, double* b)
26 {
27 foo (a, b);
28 return __builtin_exp (b[1]);
29 }