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 (__m128i x, unsigned int *v, int j)
26 for (i = 0; i < sizeof (v) / sizeof (v[0]); i++)
32 printf ("%i: 0x%x != 0x%x\n", i, v[i], u.i[i]);
40 printf ("%i: 0x%x != 0\n", i, u.i[i]);
47 __attribute__((noinline))
48 test (unsigned int *v)
52 x = _mm_set_epi32 (0, 0, 0, v[0]);
54 x = _mm_set_epi32 (0, 0, v[1], 0);
56 x = _mm_set_epi32 (0, v[2], 0, 0);
58 x = _mm_set_epi32 (v[3], 0, 0, 0);
66 = { 0x7B5B5465, 0x73745665, 0x63746F72, 0x5D53475D };