This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [AArch64] Map frint intrinsics to standard pattern names directly.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]