* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr23109.c
blob3ee6b7f1ffa95056d7a427370b75759e5e105873
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -funsafe-math-optimizations -ftrapping-math -fdump-tree-recip -fdump-tree-lim2" } */
3 /* { dg-warning "-fassociative-math disabled" "" { target *-*-* } 0 } */
5 double F[2] = { 0., 0. }, e = 0.;
7 int main()
9 int i;
10 double E, W, P, d;
12 /* make sure the program crashes on FP exception */
13 unsigned short int Mask;
15 W = 1.;
16 d = 2.*e;
17 E = 1. - d;
19 for( i=0; i < 2; i++ )
20 if( d > 0.01 )
22 P = ( W < E ) ? (W - E)/d : (E - W)/d;
23 F[i] += P;
26 return 0;
29 /* LIM only performs the transformation in the no-trapping-math case. In
30 the future we will do it for trapping-math as well in recip, check that
31 this is not wrongly optimized. */
32 /* { dg-final { scan-tree-dump-not "reciptmp" "lim2" } } */
33 /* { dg-final { scan-tree-dump-not "reciptmp" "recip" } } */