[AArch64][SVE] Fix IFN_COND_FMLA movprfx alternative
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 20 Dec 2018 16:32:46 +0000 (16:32 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 20 Dec 2018 16:32:46 +0000 (16:32 +0000)
commit7abc36cc997553532214a77cdb555bdaada8dfb3
tree6644181605e8b42689be3e7d532fa8b08be1bbf6
parentab3c292e600b31177c8ddfe1e7a1cda255d39321
[AArch64][SVE] Fix IFN_COND_FMLA movprfx alternative

This patch fixes a cut-&-pasto in the (match_dup 4) version of
"cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>".  (It's a shame
that there's so much cut-&-paste in these patterns, but it's hard
to avoid without more infrastructure.)

2018-12-20  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/aarch64/aarch64-sve.md (*cond_<optab><mode>_4): Use
sve_fmla_op rather than sve_fmad_op for the movprfx alternative.

gcc/testsuite/
* gcc.target/aarch64/sve/fmla_2.c: New test.
* gcc.target/aarch64/sve/fmla_2_run.c: Likewise

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