PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-i32scatterd-1.c
blobaa7809ba6fc697790b9e9ba73f4f45110aecabd8
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vpscatterdd\[ \\t\]+\[^\{\n\]*ymm\[0-9\]\[^\n\]*ymm\[0-9\]\[^\n\]*{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */
4 /* { dg-final { scan-assembler-times "vpscatterdd\[ \\t\]+\[^\{\n\]*xmm\[0-9\]\[^\n\]*xmm\[0-9\]\[^\n\]*{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */
6 #include <immintrin.h>
8 volatile __m256i src1, idx1;
9 volatile __m128i src2, idx2;
10 volatile __mmask8 m8;
11 int *addr;
13 void extern
14 avx512vl_test (void)
16 _mm256_i32scatter_epi32 (addr, idx1, src1, 8);
17 _mm256_mask_i32scatter_epi32 (addr, m8, idx1, src1, 8);
19 _mm_i32scatter_epi32 (addr, idx2, src2, 8);
20 _mm_mask_i32scatter_epi32 (addr, m8, idx2, src2, 8);