summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx512pf-vscatterpf0dps-1.c
blob: 7ad7544a9286d70d23d491833ca520dd5ac47cea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-mavx512pf -O2" } */
/* { dg-final { scan-assembler-times "vscatterpf0dps\[ \\t\]+\[^\n\]*%zmm\[0-9\]" 2 } } */
/* { dg-final { scan-assembler-times "vscatterpf0dps\[ \\t\]+\[^\n\]*\{%k\[1-7\]" 1 } } */

#include <immintrin.h>

volatile __m512i idx;
volatile __mmask16 m16;
int *base;

void extern
avx512pf_test (void)
{
  _mm512_prefetch_i32scatter_ps (base, idx, 8, 0);
  _mm512_mask_prefetch_i32scatter_ps (base, m16, idx, 8, 0);
}