2 /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */
3 /* { dg-require-effective-target sse4 } */
4 /* { dg-skip-if "no M_PI" { vxworks_kernel } } */
7 #define CHECK_H "sse4_1-check.h"
11 #define TEST sse4_1_test
16 #define __NO_MATH_INLINES
22 __attribute__((__target__("fpmath=sse")))
28 for (i
= 0; i
< NUM
; i
++)
30 src
[i
] = (i
+ 1) * f
* M_PI
* sign
;
36 else if (i
== (NUM
/ 2))
38 else if ((i
% 6) == 0)
39 f
= 1 / (f
* (i
+ 1) * src
[i
] * M_PI
* sign
);
45 __attribute__((__target__("fpmath=387")))
54 for (i
= 0; i
< NUM
; i
++)
55 r
[i
] = (int) __builtin_floorf (a
[i
]);
58 for (i
= 0; i
< NUM
; i
++)
59 if (r
[i
] != (int) __builtin_floorf (a
[i
]))