[ARC] Don't use drsub* instructions when selecting fpuda.
authorClaudiu Zissulescu <claziss@synopsys.com>
Thu, 28 Apr 2016 12:15:06 +0000 (14:15 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Thu, 28 Apr 2016 12:15:06 +0000 (14:15 +0200)
commit4ac2f36e33655a8fae9fe98e07cf5f77564902fc
treed1ede566440a947e60fc459d8577f88db7b53bea
parente54a38e86b29eb062545ed30ab0bda6ebd4c9c33
[ARC] Don't use drsub* instructions when selecting fpuda.

The double precision floating point assist instructions are not
implementing the reverse double subtract instruction (drsub) found in
the FPX extension.

gcc/
2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.md (cpu_facility): Add fpx variant.
(subdf3): Prohibit use reverse sub when assist operations option
is enabled.
* config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
instructions only when FPX is enabled.
        * testsuite/gcc.target/arc/trsub.c: New test.

From-SVN: r235562
gcc/ChangeLog
gcc/config/arc/arc.md
gcc/config/arc/fpx.md
gcc/testsuite/gcc.target/arc/trsub.c [new file with mode: 0644]