* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / fma_double_3.c
blob3a04777c6bfe3ef46d955f459d10ca8661d9bb56
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 double
9 #include "fma_3.h"
11 /* { dg-final { scan-assembler-times "vfmadd\[123\]+sd" 8 } } */
12 /* { dg-final { scan-assembler-times "vfmsub\[132\]+sd" 8 } } */
13 /* { dg-final { scan-assembler-times "vfnmadd\[132\]+sd" 8 } } */
14 /* { dg-final { scan-assembler-times "vfnmsub\[132\]+sd" 8 } } */