This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [AArch64] Map frint intrinsics to standard pattern names directly.
- From: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>
- To: James Greenhalgh <james dot greenhalgh at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Marcus Shawcroft <marcus dot shawcroft at arm dot com>
- Date: Fri, 26 Apr 2013 14:35:04 +0100
- Subject: Re: [AArch64] Map frint intrinsics to standard pattern names directly.
- References: <1366980156-1048-1-git-send-email-james dot greenhalgh at arm dot com>
On 26 April 2013 13:42, James Greenhalgh <james.greenhalgh@arm.com> wrote:
>
> Hi,
>
> This patch maps the frint style intrinsics directly to their
> standard pattern name versions and adds support for frintn, which
> does not map to a standard pattern name.
>
> Regression tested on aarch64-none-elf with no issues.
>
> Thanks,
> James
>
> ---
> gcc/
>
> 2013-04-26 James Greenhalgh <james.greenhalgh@arm.com>
>
> * config/aarch64/aarch64-builtins.c
> (aarch64_builtin_vectorized_function): Fold to standard pattern names.
> * config/aarch64/aarch64-simd-builtins.def (frintn): New.
> (frintz): Rename to...
> (btrunc): ...this.
> (frintp): Rename to...
> (ceil): ...this.
> (frintm): Rename to...
> (floor): ...this.
> (frinti): Rename to...
> (nearbyint): ...this.
> (frintx): Rename to...
> (rint): ...this.
> (frinta): Rename to...
> (round): ...this.
> * config/aarch64/aarch64-simd.md
> (aarch64_frint<frint_suffix><mode>): Delete.
> (<frint_pattern><mode>2): Convert to insn.
> * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
> * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
> (frint_pattern): Likewise.
> (frint_suffix): Likewise.
OK
/Marcus