[ARM] PR target/66731 Fix vnmul insn with -frounding-math
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 3 Aug 2015 11:12:00 +0000 (11:12 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Mon, 3 Aug 2015 11:12:00 +0000 (11:12 +0000)
commit1f71aee9c1b36a44509adc8f9134ccc17f2989a2
tree4134c3cb8212aeb873c25d8f28aaa1d13b4aea52
parent2ab320ad365da31f2d02b57d2f03bc291ab64bb9
[ARM] PR target/66731 Fix vnmul insn with -frounding-math

gcc:

PR target/66731
* config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
(negmulsf3_vfp): Likewise.
(muldf3negdf_vfp): Disable for -frounding-math.
(mulsf3negsf_vfp): Likewise.
* config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
fix MULT cost with -frounding-math.

gcc/testsuite:

PR target/66731
* gcc.target/arm/vnmul-1.c: New.
* gcc.target/arm/vnmul-2.c: New.
* gcc.target/arm/vnmul-3.c: New.
* gcc.target/arm/vnmul-4.c: New.

From-SVN: r226496
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/vfp.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/vnmul-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/vnmul-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/vnmul-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/vnmul-4.c [new file with mode: 0644]