1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wno-attributes -mfpmath=sse -mfma" } */
3 
4 /* Test that the compiler properly optimizes floating point multiply
5    and add instructions into FMA3 instructions.  */
6 
7 #define TYPE float
8 
9 #include "fma_6.h"
10 
11 /* { dg-final { scan-assembler-times "vfmadd132ss" 8  } } */
12 /* { dg-final { scan-assembler-times "vfmsub132ss" 8  } } */
13 /* { dg-final { scan-assembler-times "vfnmadd132ss" 8  } } */
14 /* { dg-final { scan-assembler-times "vfnmsub132ss" 8  } } */
15