2 /* { dg-require-effective-target avx } */
3 /* { dg-options "-O2 -mavx" } */
11 #define mask_v(pos) (((CTRL & (1ULL << (pos))) >> (pos)) << 1)
19 double s
[2] = {9674.67456, 13543.9788};
20 long long m
[2] = {mask_v(0), mask_v(1)};
23 src
.x
= _mm_loadu_pd(s
);
24 ctl
.x
= _mm_loadu_si128((__m128i
*) m
);
25 u
.x
= _mm_permutevar_pd(src
.x
, ctl
.x
);
27 e
[0] = s
[((m
[0] & 0x02) >> 1)];
28 e
[1] = s
[((m
[1] & 0x02) >> 1)];
30 if (check_union128d (u
, e
))