2 /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */
3 /* { dg-require-effective-target avx } */
4 /* { dg-skip-if "no M_PI" { vxworks_kernel } } */
7 #define CHECK_H "avx-check.h"
21 __attribute__((__target__("fpmath=sse")))
22 init_src (double *src
)
27 for (i
= 0; i
< NUM
; i
++)
29 src
[i
] = (i
+ 1) * f
* M_PI
* sign
;
35 else if (i
== (NUM
/ 2))
37 else if ((i
% 6) == 0)
38 f
= 1 / (f
* (i
+ 1) * src
[i
] * M_PI
* sign
);
44 __attribute__((__target__("fpmath=sse")))
53 for (i
= 0; i
< NUM
; i
++)
57 for (i
= 0; i
< NUM
; i
++)
58 if (r
[i
] != (float) a
[i
])