[AArch64] Use scvtf fbits option where appropriate
authorJoel Hutton <Joel.Hutton@arm.com>
Mon, 19 Aug 2019 16:55:20 +0000 (16:55 +0000)
committerAndre Vieira <avieira@gcc.gnu.org>
Mon, 19 Aug 2019 16:55:20 +0000 (16:55 +0000)
commit188d00796f5bd338b9b8ab1cc8ba4b43af8ab8fd
treea3cb30ac04488d058f1966e82e011a03c6c819c0
parentaac9103b0e13e49cc4e88abc857d4d043ce20bd4
[AArch64] Use scvtf fbits option where appropriate

gcc/ChangeLog:
2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>

* config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
* config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
* config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
(*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
* config/aarch64/constraints.md (Dt): New constraint
* config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate

gcc/testsuite/ChangeLog:
2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>

* gcc.target/aarch64/fmul_scvtf_1.c: New test.

From-SVN: r274676
gcc/ChangeLog
gcc/config/aarch64/aarch64-protos.h
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.md
gcc/config/aarch64/constraints.md
gcc/config/aarch64/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/fmul_scvtf_1.c [new file with mode: 0644]