1 /* { dg-do run { xfail *-*-* } } */
2 /* We don't (and don't want to) perform this optimisation on soft-float
3 targets, where each addition is a library call. This test requires
4 -fassociative-math for enabling the variable-expansion as well as
5 -fsigned-zeros for honoring the sign of zero; but
6 they can not co-exist; also under -funsafe-math-optimizations, so we
8 /* { dg-require-effective-target hard_float } */
9 /* { dg-options "-O2 -funroll-loops -funsafe-math-optimizations -fvariable-expansion-in-unroller -fdump-rtl-loop2_unroll" } */
11 extern void abort (void);
12 extern void exit (int);
14 float __attribute__((noinline
))
20 for (i
= 0; i
< n
; i
++)
29 if (__builtin_copysignf (1.0, foo (0.0 / -5.0, 10)) != -1.0)
34 /* { dg-final { scan-rtl-dump "Expanding Accumulator" "loop2_unroll" } } */
35 /* { dg-final { cleanup-rtl-dump "loop*" } } */