summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx512vl-i32scatterq-1.c
blob: 0502fb5eb9623cf70ba9cd4de2b10dce6c784d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-options "-mavx512vl -O2" } */
/* { dg-final { scan-assembler-times "vpscatterdq\[ \\t\]+\[^\{\n\]*ymm\[0-9\]\[^\n\]*xmm\[0-9\]\[^\n\]*{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */
/* { dg-final { scan-assembler-times "vpscatterdq\[ \\t\]+\[^\{\n\]*xmm\[0-9\]\[^\n\]*xmm\[0-9\]\[^\n\]*{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */

#include <immintrin.h>

volatile __m256i src1;
volatile __m128i src2, idx;
volatile __mmask8 m8;
long long *addr;

void extern
avx512vl_test (void)
{
  _mm256_i32scatter_epi64 (addr, idx, src1, 8);
  _mm256_mask_i32scatter_epi64 (addr, m8, idx, src1, 8);

  _mm_i32scatter_epi64 (addr, idx, src2, 8);
  _mm_mask_i32scatter_epi64 (addr, m8, idx, src2, 8);
}