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. */
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 } } */