[aarch64]: add support for fabd in sve
authorSylvia Taylor <sylvia.taylor@arm.com>
Thu, 30 May 2019 17:36:52 +0000 (17:36 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 30 May 2019 17:36:52 +0000 (17:36 +0000)
commit3db85990dbde7f9c8212fe0fb8a241c5d2993198
tree1b4fb0d12fb2c8f090d63a6da6f00b79b3467372
parentc9c41a6b1bf681e319b3b3df035eeb9ad754ea0d
[aarch64]: add support for fabd in sve

This patch adds support in SVE to combine:
- fsub and fabs into fabd

fsub    z0.s, z0.s, z1.s
fabs    z0.s, p1/m, z0.s
---
fabd    z0.s, p1/m, z0.s, z1.s

2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>

gcc/
* config/aarch64/aarch64-sve.md (*fabd<mode>3): New.

gcc/testsuite/
* gcc.target/aarch64/sve/fabd_1.c: New.

From-SVN: r271785
gcc/ChangeLog
gcc/config/aarch64/aarch64-sve.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/sve/fabd_1.c [new file with mode: 0644]