diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf0dpd-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf0dpd-1.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf0dpd-1.c b/gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf0dpd-1.c new file mode 100644 index 00000000000..1368b7a459d --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf0dpd-1.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-options "-mavx512pf -O2" } */ +/* { dg-final { scan-assembler-times "vgatherpf0dpd\[ \\t\]+\[^\n\]*\{%k\[1-7\]" 1 } } */ + +#include <immintrin.h> + +volatile __m256i idx; +volatile __mmask8 m8; +void *base; + +void extern +avx512pf_test (void) +{ + _mm512_mask_prefetch_i32gather_pd (idx, m8, base, 8, 0); +} |