Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-vpaddq-1.c
blob3b94fdd0b5789e0d6b4afc899e0af56fbe83775a
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512vl" } */
3 /* { dg-final { scan-assembler-times "vpaddq\[ \\t\]+\[^\n\]*%ymm\[0-9\]\[^\{\]" 2 } } */
4 /* { dg-final { scan-assembler-times "vpaddq\[ \\t\]+\[^\n\]*%ymm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
5 /* { dg-final { scan-assembler-times "vpaddq\[ \\t\]+\[^\n\]*%ymm\[0-9\]\{%k\[1-7\]\}\{z\}" 1 } } */
6 /* { dg-final { scan-assembler-times "vpaddq\[ \\t\]+\[^\n\]*%xmm\[0-9\]\[^\{\]" 2 } } */
7 /* { dg-final { scan-assembler-times "vpaddq\[ \\t\]+\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
8 /* { dg-final { scan-assembler-times "vpaddq\[ \\t\]+\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\{z\}" 1 } } */
10 #include <immintrin.h>
12 volatile __m256i x256;
13 volatile __m128i x128;
14 volatile __mmask8 m8;
16 void extern
17 avx512vl_test (void)
19 x256 = _mm256_mask_add_epi64 (x256, m8, x256, x256);
20 x256 = _mm256_maskz_add_epi64 (m8, x256, x256);
21 x128 = _mm_mask_add_epi64 (x128, m8, x128, x128);
22 x128 = _mm_maskz_add_epi64 (m8, x128, x128);