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] Add vector fix, fixuns, fix_trunc, fixuns_trunc standard patterns


OK
/Marcus

On 26 April 2013 14:30, James Greenhalgh <james.greenhalgh@arm.com> wrote:
>
> Hi,
>
> This patch enables vectorization over conversions by implimenting the
> fix, fixuns, fix_trunc, fixuns_trunc, and ftrunc standard pattern names.
>
> Each of these is implimented by the frintz<u,s> instruction.
> (Round towards 0)
>
> The expanders for these are blank as they are already
> implimented by the lrint standard patterns. We are
> just connecting the dots for another set of standard names.
>
> Regression tested for aarch64-none-elf with no regressions.
>
> Thanks,
> James
>
> ---
> gcc/
>
> 2013-04-26  James Greenhalgh  <james.greenhalgh@arm.com>
>
>         * config/aarch64/aarch64-simd.md
>         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
>         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
>         fix_trunc, fixuns_trunc.
>         (ftrunc<VDQF:mode>2): New.
>         * config/aarch64/iterators.md (optab): Add fix, fixuns.
>         (fix_trunc_optab): New.


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