| 1 |
/* PR tree-optimization/79333 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-require-effective-target c99_runtime } */ |
| 4 |
/* { dg-options "-O -ffinite-math-only -fdump-tree-fre1" } */ |
| 5 |
|
| 6 |
extern __inline __attribute__ ((__always_inline__,__gnu_inline__)) |
| 7 |
double __attribute__ ((__nothrow__ , __leaf__)) |
| 8 |
fabs (double __x) { return __builtin_fabs (__x); } |
| 9 |
|
| 10 |
double f(float f) |
| 11 |
{ |
| 12 |
double t1 = fabs(f); |
| 13 |
double t2 = f / t1; |
| 14 |
return t2; |
| 15 |
} |
| 16 |
|
| 17 |
/* { dg-final { scan-tree-dump "copysign" "fre1" } } */ |