2 /* { dg-options "-O -msse2" } */
3 /* { dg-require-effective-target sse2 } */
6 #include "sse-os-support.h"
9 typedef double V
__attribute__((vector_size(16)));
10 typedef long long IV
__attribute__((vector_size(16)));
11 typedef union { S s
[2]; V v
; } U
;
15 extern int memcmp (const void *, const void *, __SIZE_TYPE__
);
16 #define assert(T) ((T) || (__builtin_trap (), 0))
18 #define TEST(E0, E1) \
19 b.v = __builtin_shuffle (i[0].v, i[1].v, (IV){E0, E1}); \
20 c.s[0] = i[0].s[E0]; \
21 c.s[1] = i[0].s[E1]; \
22 __asm__("" : : : "memory"); \
23 assert (memcmp (&b, &c, sizeof(c)) == 0);
25 #include "vperm-2-2.inc"
31 if (!sse_os_support ())