OSDN Git Service

* gcc.dg/tree-ssa/ssa-pre-10.c: Use -fno-finite-math-only on
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-pre-10.c
1 /* { dg-do compile } */ 
2 /* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */
3 /* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats -fno-finite-math-only" { target sh*-*-* } } */
4 double cos (double);
5 void link_error();
6 void f(double a)
7 {
8   double b = cos (a);
9   double c = cos (a);
10   if (b != c)
11     link_error();
12 }
13
14 /* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre"} } */
15 /* { dg-final { cleanup-tree-dump "fre" } } */