1 /* PR middle-end/33088 */
2 /* Origin: Joseph S. Myers <jsm28@gcc.gnu.org> */
4 /* { dg-do run { target i?86-*-linux* i?86-*-gnu* x86_64-*-linux* } } */
5 /* { dg-options "-std=c99 -O -ffloat-store -lm" } */
12 void __attribute__((noinline
))
17 for (i
= 0; i
< 1024; i
++)
19 for (i
= 0; i
< 1024; i
++)
23 volatile _Complex
double vc
;
25 void __attribute__((noinline
))
26 use_complex (_Complex
double c
)
31 double t0
, t1
, t2
, t3
;
33 #define USE_COMPLEX(X, R, C) \
34 do { __real__ X = R; __imag__ X = C; use_complex (X); } while (0)
36 void __attribute__((noinline
))
39 _Complex
double a
, b
, c
, d
;
40 USE_COMPLEX (a
, t0
, t1
);
41 USE_COMPLEX (b
, t1
, t2
);
42 USE_COMPLEX (c
, t2
, t3
);
43 USE_COMPLEX (d
, t3
, t0
);
50 feclearexcept (FE_INVALID
);
52 if (fetestexcept (FE_INVALID
))