diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-12 21:35:19 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-12 21:35:19 +0000 |
commit | a3ed3761ca3501faa64e92e7e38d32fdb146a0ff (patch) | |
tree | ba5ea342196989db654db06103cbefccccbe76fc /gcc/testsuite/gcc.target/i386/fma_double_3.c | |
parent | 64c0b1493f1490fe1a0171227b57429410dc15f2 (diff) | |
download | gcc-a3ed3761ca3501faa64e92e7e38d32fdb146a0ff.tar.gz |
2011-10-12 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 179863 using svnmerge.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@179867 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/fma_double_3.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/fma_double_3.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/fma_double_3.c b/gcc/testsuite/gcc.target/i386/fma_double_3.c new file mode 100644 index 00000000000..c66078d4e4c --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/fma_double_3.c @@ -0,0 +1,19 @@ +/* { dg-do compile } */ +/* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */ +/* { dg-options "-O2 -mfpmath=sse -mfma" } */ + +/* Test that the compiler properly optimizes floating point multiply + and add instructions into FMA3 instructions. */ + +#define TYPE double + +#include "fma_3.h" + +/* { dg-final { scan-assembler-times "vfmadd132sd" 4 } } */ +/* { dg-final { scan-assembler-times "vfmadd231sd" 4 } } */ +/* { dg-final { scan-assembler-times "vfmsub132sd" 4 } } */ +/* { dg-final { scan-assembler-times "vfmsub231sd" 4 } } */ +/* { dg-final { scan-assembler-times "vfnmadd132sd" 4 } } */ +/* { dg-final { scan-assembler-times "vfnmadd231sd" 4 } } */ +/* { dg-final { scan-assembler-times "vfnmsub132sd" 4 } } */ +/* { dg-final { scan-assembler-times "vfnmsub231sd" 4 } } */ |