2 /* { dg-options "-O2 -msse2" } */
4 #include "sse2-check.h"
10 #include <emmintrin.h>
13 __attribute__((noinline
))
14 check (__m128i x
, unsigned int *v
, int j
)
25 for (i
= 0; i
< sizeof (v
) / sizeof (v
[0]); i
++)
31 printf ("%i: 0x%x != 0x%x\n", i
, v
[i
], u
.i
[i
]);
39 printf ("%i: 0x%x != 0\n", i
, u
.i
[i
]);
46 __attribute__((noinline
))
47 test (unsigned int *v
)
51 x
= _mm_set_epi32 (0, 0, 0, v
[0]);
53 x
= _mm_set_epi32 (0, 0, v
[1], 0);
55 x
= _mm_set_epi32 (0, v
[2], 0, 0);
57 x
= _mm_set_epi32 (v
[3], 0, 0, 0);
65 = { 0x7B5B5465, 0x73745665, 0x63746F72, 0x5D53475D };