gcc/testsuite/gcc.dg/tree-ssa/pr71078-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target c99_runtime } */ |
| 3 | /* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */ |
| 4 | |
| 5 | #include <math.h> |
| 6 | |
| 7 | float f1(float x) |
| 8 | { |
| 9 | float t1 = fabsf (x); |
| 10 | float t2 = t1 / x; |
| 11 | return t2; |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-tree-dump "__builtin_copysignf" "forwprop1" } } */ |