Initial support for AVX-512{VL,BW,DQ}
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-i64gatherps-1.c
blob0b8f6fec181afc9b3fa03bf66e498b2ac3993dd1
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vgatherqps\[ \\t\]+\[^\n\]*ymm\[0-9\]\[^\n\]*xmm\[0-9\]{%k\[1-7\]}" 2 } } */
4 /* { dg-final { scan-assembler-times "vgatherqps\[ \\t\]+\[^\n\]*xmm\[0-9\]\[^\n\]*xmm\[0-9\]{%k\[1-7\]}" 2 } } */
6 #include <immintrin.h>
8 volatile __m128 x;
9 volatile __m256i idx1;
10 volatile __m128i idx2;
11 volatile __mmask8 m8;
12 float *base;
14 void extern
15 avx512vl_test (void)
17 x = _mm256_mmask_i64gather_ps (x, 0xFF, idx1, base, 8);
18 x = _mm256_mmask_i64gather_ps (x, m8, idx1, base, 8);
19 x = _mm_mmask_i64gather_ps (x, 0xFF, idx2, base, 8);
20 x = _mm_mmask_i64gather_ps (x, m8, idx2, base, 8);