PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-i32gatherps-1.c
blob0f58b4e44e82f07472c8a8a60c8fe66cdb53dcda
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vgatherdps\[ \\t\]+\[^\{\n\]*ymm\[0-9\]\[^\n\]*ymm\[0-9\]{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */
4 /* { dg-final { scan-assembler-times "vgatherdps\[ \\t\]+\[^\{\n\]*xmm\[0-9\]\[^\n\]*xmm\[0-9\]{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */
6 #include <immintrin.h>
8 volatile __m256 x1;
9 volatile __m128 x2;
10 volatile __m256i idx1;
11 volatile __m128i idx2;
12 volatile __mmask8 m8;
13 float *base;
15 void extern
16 avx512vl_test (void)
18 x1 = _mm256_mmask_i32gather_ps (x1, 0xFF, idx1, base, 8);
19 x1 = _mm256_mmask_i32gather_ps (x1, m8, idx1, base, 8);
20 x2 = _mm_mmask_i32gather_ps (x2, 0xFF, idx2, base, 8);
21 x2 = _mm_mmask_i32gather_ps (x2, m8, idx2, base, 8);