2 /* { dg-options "-O -msse2" } */
7 typedef double V __attribute__((vector_size(16)));
8 typedef long long IV __attribute__((vector_size(16)));
9 typedef union { S s[2]; V v; } U;
13 extern int memcmp (const void *, const void *, __SIZE_TYPE__);
14 #define assert(T) ((T) || (__builtin_trap (), 0))
16 #define TEST(E0, E1) \
17 b.v = __builtin_ia32_vec_perm_v2df (i[0].v, i[1].v, (IV){E0, E1}); \
18 c.s[0] = i[0].s[E0]; \
19 c.s[1] = i[0].s[E1]; \
20 __asm__("" : : : "memory"); \
21 assert (memcmp (&b, &c, sizeof(c)) == 0);
23 #include "vperm-2-2.inc"