This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING][AArch64] Use scvtf fbits option where appropriate
- From: James Greenhalgh <james dot greenhalgh at arm dot com>
- To: Joel Hutton <Joel dot Hutton at arm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Richard Sandiford <Richard dot Sandiford at arm dot com>, Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, nd <nd at arm dot com>
- Date: Mon, 1 Jul 2019 18:03:12 +0100
- Subject: Re: [PING][AArch64] Use scvtf fbits option where appropriate
- References: <VI1PR0801MB2127DDBC4002E79533DEAA6B83EF0@VI1PR0801MB2127.eurprd08.prod.outlook.com> <3157239f-48e6-bbd6-122c-d173b361bebd@arm.com> <a2963ff3-11e4-80b2-3985-c8a2b255b723@arm.com> <VI1PR0801MB21273E08FDEA3668B905C0D083EA0@VI1PR0801MB2127.eurprd08.prod.outlook.com> <mptfto7uldf.fsf@arm.com> <d5c7b8da-a2fc-353a-7609-1c5ec2d770a8@arm.com> <832dd1bd-89f9-ca98-7b88-d5b26f515d63@arm.com>
On Wed, Jun 26, 2019 at 10:35:00AM +0100, Joel Hutton wrote:
> Ping, plus minor rework (mostly non-functional changes)
>
> gcc/ChangeLog:
>
> 2019-06-12 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
Cool; I learned a new instruction!
> (*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-06-12 Joel Hutton <Joel.Hutton@arm.com>
>
> * gcc.target/aarch64/fmul_scvtf_1.c: New test.
This testcase will fail on ILP32 targets where unsigned long will still
live in a 'w' register.
Thanks,
James