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][ARM][3/3] Recognise bitwise operations leading to SImode rev16


On Wed, Mar 19, 2014 at 9:56 AM, Kyrill Tkachov <kyrylo.tkachov@arm.com> wrote:
> Hi all,
>
> This is the arm equivalent of patch [2/3] in the series that adds combine
> patterns for the bitwise operations leading to a rev16 instruction.
> It reuses the functions that were put in aarch-common.c to properly cost
> these operations.
>
> I tried matching a DImode rev16 (with the intent of splitting it into two
> rev16 ops) like aarch64 but combine wouldn't try to match that bitwise
> pattern in DImode like aarch64 does. Instead it tries various exotic
> combinations with subregs.
>
> Tested arm-none-eabi, bootstrap on arm-none-linux-gnueabihf.
>
> Ok for stage1?

This is OK for stage1 .

Ramana

>
> [gcc/]
> 2014-03-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
>
>     * config/arm/arm.md (arm_rev16si2): New pattern.
>     (arm_rev16si2_alt): Likewise.
>     * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
>
>
> [gcc/testsuite/]
> 2014-03-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
>
>     * gcc.target/arm/rev16.c: New test.


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