2 /* { dg-options "-O3 -mvsx -Wno-psabi" } */
3 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
4 /* { dg-require-effective-target p8vector_hw } */
7 #define CHECK_H "sse2-check.h"
13 #define TEST sse2_test_cvtsd2si_2
16 #include <emmintrin.h>
19 __attribute__((noinline
, unused
))
22 return _mm_cvtsd_si64 (p
);
32 s
.x
= _mm_set_pd (829496729501.4, 429496729501.4);
36 e
= (long long)(s
.a
[0] + 0.5);
41 printf ("sse2_test_cvtsd2si_2; failed\n");
42 printf ("\t [%f,%f] -> [%ld]\n", s
.a
[0], s
.a
[1], d
);
43 printf ("\t expect [%ld]\n", e
);