blob: 9cd02495b1b8179b066a2d1cebf77fee0b30f8a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* { 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. */
#define TYPE float
#include "l_fma_2.h"
/* { dg-final { scan-assembler-times "vfmadd132ps" 8 } } */
/* { dg-final { scan-assembler-times "vfmsub132ps" 8 } } */
/* { dg-final { scan-assembler-times "vfnmadd132ps" 8 } } */
/* { dg-final { scan-assembler-times "vfnmsub132ps" 8 } } */
/* { dg-final { scan-assembler-times "vfmadd132ss" 16 } } */
/* { dg-final { scan-assembler-times "vfmsub132ss" 16 } } */
/* { dg-final { scan-assembler-times "vfnmadd132ss" 16 } } */
/* { dg-final { scan-assembler-times "vfnmsub132ss" 16 } } */
|