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_1
16 #include <emmintrin.h>
20 __attribute__((noinline
, unused
))
23 return _mm_cvtsd_si32 (p
);
33 s
.x
= _mm_set_pd (123.321, 456.987);
37 e
= (int)(s
.a
[0] + 0.5);
42 printf ("sse2_test_cvtsd2si_1; failed\n");
43 printf ("\t [%f,%f] -> [%d]\n", s
.a
[0], s
.a
[1], d
);
44 printf ("\t expect [%d]\n", e
);