OSDN Git Service

Fix PR40886.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr41574.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -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" } } */
15 /* { dg-final { cleanup-rtl-dump "combine*" } } */