PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx5124fmadd-v4fmaddps-1.c
blob1035f253f06614f90f26b84272e8e9a373308220
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx5124fmaps" } */
3 /* { dg-final { scan-assembler-times "v4fmaddps\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "v4fmaddps\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "v4fmaddps\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
7 #include <x86intrin.h>
9 __m512 a, b, c, d, e, f, g, x1, x2, x3;
10 __m128 *mem;
11 __mmask16 m;
13 int foo ()
15 x1 = _mm512_4fmadd_ps (a, b, c, d, e, mem);
16 x2 = _mm512_mask_4fmadd_ps (a, m, b, c, d, e, mem);
17 x3 = _mm512_maskz_4fmadd_ps (m, a, b, c, d, e, mem);