2 /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */
3 /* { dg-require-effective-target avx512f } */
4 /* { dg-skip-if "no M_PI" { vxworks_kernel } } */
6 #define __NO_MATH_INLINES
8 #include "avx512f-check.h"
10 extern double ceil (double);
15 __attribute__((__target__("fpmath=sse")))
16 init_src (double *src
)
21 for (i
= 0; i
< NUM
; i
++)
23 src
[i
] = (i
+ 1) * f
* M_PI
* sign
;
29 else if (i
== (NUM
/ 2))
31 else if ((i
% 6) == 0)
32 f
= 1 / (f
* (i
+ 1) * src
[i
] * M_PI
* sign
);
38 __attribute__((__target__("fpmath=387")))
47 for (i
= 0; i
< NUM
; i
++)
48 r
[i
] = (int) ceil (a
[i
]);
51 for (i
= 0; i
< NUM
; i
++)
52 if (r
[i
] != (int) ceil (a
[i
]))