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: [PATCH][AArch64][1/2] Remove UNSPEC_CLS and use clrsb RTL code in its' place


On 22 July 2014 12:23, Kyrill Tkachov <kyrylo.tkachov@arm.com> wrote:
> Hi all,
>
> I noticed that we use UNSPEC_CLS for the clrsb optab when we could be using
> the RTL code for it. I don't see any reason not to use the RTL code and some
> execution tests confirm that the cls instruction implements the expected
> clrsb semantics. This patch removes the UNSPEC_CLS definition and usage.
>
>
> Bootstrapped and tested on aarch64-linux.
>
> Ok for trunk?
>
> Thanks,
> Kyrill
>
> 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
>
>         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
>         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.

Looks Ok. /Marcus


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