2 /* { dg-skip-if "-mpowerpc-gpopt not supported" { powerpc*-*-darwin* } } */
3 /* { dg-options "-O2 -ffast-math -fno-inline -fno-unroll-loops -lm -mpowerpc-gpopt" } */
7 extern void abort (void);
12 convert_it_1 (double x
)
18 convert_it_2 (double x
)
24 convert_it_3 (double x
)
30 convert_it_4 (double x
)
36 convert_it_5 (double x
)
42 main (int argc
, char *argv
[])
44 double values
[NVALS
] = { 3.0, 1.95, 2.227, 4.0, 256.0, .0008797 };
45 double PREC
= .999999;
48 for (i
= 0; i
< NVALS
; i
++)
53 y
= __builtin_powi (values
[i
], 1);
54 if (fabs (convert_it_1 (values
[i
]) / (x
* y
)) < PREC
)
58 y
= __builtin_powi (values
[i
], 2);
59 if (fabs (convert_it_2 (values
[i
]) / (x
* y
)) < PREC
)
63 y
= __builtin_powi (values
[i
], -1);
64 if (fabs (convert_it_3 (values
[i
]) / (x
* y
)) < PREC
)
68 y
= __builtin_powi (values
[i
], 10);
69 if (fabs (convert_it_4 (values
[i
]) / (x
* y
)) < PREC
)
73 y
= __builtin_powi (values
[i
], -4);
74 if (fabs (convert_it_5 (values
[i
]) / (x
* y
)) < PREC
)