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 } } */
6
7 #include <x86intrin.h>
8
9 __m512 a, b, c, d, e, f, g, x1, x2, x3;
10 __m128 *mem;
11 __mmask16 m;
12
foo()13 int foo ()
14 {
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);
18 }
19