2 /* { dg-require-effective-target sse4 } */
3 /* { dg-options "-O2 -msse4.1" } */
5 #include "sse4_1-check.h"
11 #include <emmintrin.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 };