diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/pr59390.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr59390.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr59390.c b/gcc/testsuite/gcc.target/i386/pr59390.c new file mode 100644 index 00000000000..49ce02d1a21 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr59390.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ +/* { dg-options "-std=c99 -O3" } */ + +#include "math.h" +void fun() __attribute__((target("fma"))); + +void +other_fun(double *restrict out, double * restrict a, double * restrict b, double * restrict c, int n) +{ + int i; + for (i = 0; i < n; i++) { + out[i] = fma(a[i], b[i], c[i]); + } +} + +/* { dg-final { scan-assembler-not "vfmadd" } } */ |