2 /* { dg-require-effective-target avx } */
3 /* { dg-options "-O2 -mavx" } */
11 #define mask_v(pos) (((MASK & (0x1 << (pos))) >> (pos)) << 31)
17 int m
[4] = {mask_v(0), mask_v(1), mask_v(2), mask_v(3)};
18 float s
[4] = {1,2,3,4};
23 mask
.x
= _mm_loadu_si128 ((__m128i
*)m
);
24 u
.x
= _mm_maskload_ps (s
, mask
.x
);
26 for (i
= 0 ; i
< 4; i
++)
27 e
[i
] = m
[i
] ? s
[i
] : 0;
29 if (check_union128 (u
, e
))