2 /* { dg-options "-O2 -msse" } */
3 /* { dg-require-effective-target sse } */
11 #include <xmmintrin.h>
14 __attribute__((noinline
))
15 check (__m128 x
, float *v
, int j
)
26 for (i
= 0; i
< sizeof (v
) / sizeof (v
[0]); i
++)
32 printf ("%i: %f != %f\n", i
, v
[i
], u
.f
[i
]);
40 printf ("%i: %f != 0\n", i
, u
.f
[i
]);
47 __attribute__((noinline
))
52 x
= _mm_set_ps (0, 0, 0, v
[0]);
54 x
= _mm_set_ps (0, 0, v
[1], 0);
56 x
= _mm_set_ps (0, v
[2], 0, 0);
58 x
= _mm_set_ps (v
[3], 0, 0, 0);
65 float v
[4] = { -3, 2, 1, 9 };