1 /* { dg-do compile } */
2 /* { dg-options "-O -ffinite-math-only -fdump-tree-optimized" } */
4 double test1 (double x
)
12 double test2 (double x
)
16 s
= __builtin_sin (x
);
17 c
= __builtin_cos (x
);
21 double test3 (double x
, int b
)
26 s
= __builtin_sin (x
);
27 c
= __builtin_cos (x
);
31 double test4 (double x
)
35 s
= __builtin_sin (x
);
39 /* { dg-final { scan-tree-dump-times "cexpi" 3 "optimized" } } */
40 /* { dg-final { cleanup-tree-dump "optimized" } } */