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_cvtpd_ps
16 #include <emmintrin.h>
19 __attribute__((noinline
, unused
))
22 return _mm_cvtpd_ps (p
);
32 s
.x
= _mm_set_pd (123.321, 456.987);
39 if (check_union128 (u
, e
))
42 printf ("sse2_test_cvtpd_ps; check_union128 failed\n");
43 printf ("\t [%f,%f] -> [%f,%f,%f,%f]\n", s
.a
[0], s
.a
[1], u
.a
[0], u
.a
[1],
45 printf ("\t expect [%f,%f,%f,%f]\n", e
[0], e
[1], e
[2], e
[3]);