diff options
author | Jakub Jelinek <jakub@gcc.gnu.org> | 2012-09-14 14:36:33 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2012-09-14 14:36:33 +0200 |
commit | aeeede334c2c91c311ee5222141defc67d12ccc7 (patch) | |
tree | dc055af693b6023fb127e58c78dfe071328bcca9 | |
parent | 02cbc6d6a7afd9a2074ba70ca43bbbe262f38320 (diff) | |
download | gcc-aeeede334c2c91c311ee5222141defc67d12ccc7.zip gcc-aeeede334c2c91c311ee5222141defc67d12ccc7.tar.gz gcc-aeeede334c2c91c311ee5222141defc67d12ccc7.tar.bz2 |
re PR target/54564 (Broken __builtin_ia32_vfmadds[sd]3)
PR target/54564
* config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
instead of (match_dup 0) as second argument to vec_merge.
(*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
Remove third alternative.
(*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise. Negate
operand 2 instead of operand 1, but put it as first argument
of fma.
* config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
_mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
of the first.
From-SVN: r191297
-rw-r--r-- | gcc/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f1aedb2..cf466dd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2012-09-14 Jakub Jelinek <jakub@redhat.com> + + PR target/54564 + * config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1) + instead of (match_dup 0) as second argument to vec_merge. + (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise. + Remove third alternative. + (*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise. Negate + operand 2 instead of operand 1, but put it as first argument + of fma. + 2012-09-14 Richard Guenther <rguenther@suse.de> PR tree-optimization/54565 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e274bc3..dd8fb33 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2012-09-14 Jakub Jelinek <jakub@redhat.com> + + PR target/54564 + * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss, + _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead + of the first. + 2012-09-14 Richard Guenther <rguenther@suse.de> PR tree-optimization/54565 |