* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / fma_float_1.c
blob67b1f3fe7cb5c71bb1214680527b64d7d87eb31d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wno-attributes -mfpmath=sse -mfma" } */
4 /* Test that the compiler properly optimizes floating point multiply
5 and add instructions into FMA3 instructions. */
7 #define TYPE float
9 #include "fma_1.h"
11 /* { dg-final { scan-assembler-times "vfmadd132ss" 4 } } */
12 /* { dg-final { scan-assembler-times "vfmadd231ss" 4 } } */
13 /* { dg-final { scan-assembler-times "vfmsub132ss" 4 } } */
14 /* { dg-final { scan-assembler-times "vfmsub231ss" 4 } } */
15 /* { dg-final { scan-assembler-times "vfnmadd132ss" 4 } } */
16 /* { dg-final { scan-assembler-times "vfnmadd231ss" 4 } } */
17 /* { dg-final { scan-assembler-times "vfnmsub132ss" 4 } } */
18 /* { dg-final { scan-assembler-times "vfnmsub231ss" 4 } } */