PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / l_fma_float_1.c
blobff109817d5d8f2fe4bd8da4b0fdef115d1d7ed6a
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -Wno-attributes -mfpmath=sse -mfma -mtune=generic -mno-fma4" } */
4 /* Test that the compiler properly optimizes floating point multiply
5 and add instructions into FMA3 instructions. */
7 #define TYPE float
9 #include "l_fma_1.h"
11 /* { dg-final { scan-assembler-times "vfmadd\[123\]+ps" 8 } } */
12 /* { dg-final { scan-assembler-times "vfmsub\[123\]+ps" 8 } } */
13 /* { dg-final { scan-assembler-times "vfnmadd\[123\]+ps" 8 } } */
14 /* { dg-final { scan-assembler-times "vfnmsub\[123\]+ps" 8 } } */
15 /* { dg-final { scan-assembler-times "vfmadd\[123\]+ss" 120 } } */
16 /* { dg-final { scan-assembler-times "vfmsub\[123\]+ss" 120 } } */
17 /* { dg-final { scan-assembler-times "vfnmadd\[123\]+ss" 120 } } */
18 /* { dg-final { scan-assembler-times "vfnmsub\[123\]+ss" 120 } } */