blob: d571aca1b01ecd74105c8deb57347ad94695787c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* { dg-do compile } */
/* { dg-options "-O3 -Wno-attributes -mfpmath=sse -mfma -mtune=generic" } */
/* Test that the compiler properly optimizes floating point multiply
and add instructions into FMA3 instructions. */
typedef double adouble __attribute__((aligned(sizeof (double))));
#define TYPE adouble
#include "l_fma_4.h"
/* { dg-final { scan-assembler-times "vfmadd132pd" 8 } } */
/* { dg-final { scan-assembler-times "vfmsub132pd" 8 } } */
/* { dg-final { scan-assembler-times "vfnmadd132pd" 8 } } */
/* { dg-final { scan-assembler-times "vfnmsub132pd" 8 } } */
/* { dg-final { scan-assembler-times "vfmadd132sd" 56 } } */
/* { dg-final { scan-assembler-times "vfmsub132sd" 56 } } */
/* { dg-final { scan-assembler-times "vfnmadd132sd" 56 } } */
/* { dg-final { scan-assembler-times "vfnmsub132sd" 56 } } */
|