gcc/testsuite/gcc.dg/pr41574.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mcpu=unset -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fno-unsafe-math-optimizations -fdump-rtl-combine" { target { arm*-*-* } } } */ |
| 3 | /* { dg-options "-O2 -fno-unsafe-math-optimizations -fdump-rtl-combine" { target { ! arm*-*-* } } } */ |
| 4 | |
| 5 | |
| 6 | static const double one=1.0; |
| 7 | |
| 8 | double |
| 9 | f(double x) |
| 10 | { |
| 11 | return x*(one+x); |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-rtl-dump-not "\\(plus:DF \\(mult:DF" "combine" } } */ |