OSDN Git Service

e30d689e01732b75fc9f1f5a5b810383e1f91b4d
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / fma_double_2.c
1 /* { dg-do compile } */
2 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
3 /* { dg-options "-O2 -mfpmath=sse -mfma" } */
4
5 /* Test that the compiler properly optimizes floating point multiply
6    and add instructions into FMA3 instructions.  */
7
8 #define TYPE double
9
10 #include "fma_2.h"
11
12 /* { dg-final { scan-assembler-times "vfmadd132sd" 8  } } */
13 /* { dg-final { scan-assembler-times "vfmsub132sd" 8  } } */
14 /* { dg-final { scan-assembler-times "vfnmadd132sd" 8  } } */
15 /* { dg-final { scan-assembler-times "vfnmsub132sd" 8  } } */