]>
Commit | Line | Data |
---|---|---|
8e84a142 IB |
1 | // { dg-do compile } |
2 | // { dg-options "-O0 -fdump-tree-optimized-raw" } | |
3 | ||
4 | import gcc.attributes; | |
5 | ||
6 | double notfast(double x) | |
7 | { | |
8 | return x * x * x * x * x * x * x * x; | |
9 | } | |
10 | ||
11 | // { dg-final { scan-tree-dump-times "mult_expr, _" 7 "optimized" } } | |
12 | ||
13 | @fastmath | |
14 | static double fast(double x) | |
15 | { | |
16 | return x * x * x * x * x * x * x * x; | |
17 | } | |
18 | ||
19 | // { dg-final { scan-tree-dump-times "mult_expr, powmult_" 3 "optimized" } } |