(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
avx512f-broadcast-pr87767-3.c
       1  /* PR target/87767 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -mavx512f" } */
       4  /* { dg-additional-options "-fno-PIE" { target ia32 } } */
       5  /* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } }
       6  /* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to8\\\}" 4 } }  */
       7  /* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to16\\\}" 4 } }  */
       8  
       9  typedef float v4sf  __attribute__ ((vector_size (16)));
      10  typedef float v8sf  __attribute__ ((vector_size (32)));
      11  typedef float v16sf  __attribute__ ((vector_size (64)));
      12  typedef double v2df  __attribute__ ((vector_size (16)));
      13  typedef double v4df  __attribute__ ((vector_size (32)));
      14  typedef double v8df  __attribute__ ((vector_size (64)));
      15  
      16  #define CONSTANT 101;
      17  #define FOO(VTYPE, OP_NAME, OP1, OP2)		\
      18  VTYPE						\
      19   __attribute__ ((noipa))			\
      20   foo_##OP_NAME##_##VTYPE (VTYPE a, VTYPE b)	\
      21  {						\
      22    return (OP1 a * b) OP2 CONSTANT;		\
      23  }						\
      24  
      25  FOO (v16sf, fma,, +);
      26  FOO (v8df, fma,, +);
      27  FOO (v16sf, fms,, -);
      28  FOO (v8df, fms,, -);
      29  FOO (v16sf, fnma, -, +);
      30  FOO (v8df, fnma, -, +);
      31  FOO (v16sf, fnms, -, -);
      32  FOO (v8df, fnms, -, -);