This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, ARM] Support ORN for DImode
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Ian Bolton <ian dot bolton at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 21 Feb 2014 14:41:27 +0000
- Subject: Re: [PATCH, ARM] Support ORN for DImode
- Authentication-results: sourceware.org; auth=none
- References: <000001cf2d5b$f4738900$dd5a9b00$ at bolton@arm.com>
On 19/02/14 10:18, Ian Bolton wrote:
> Hi,
>
> Patterns had previously been added to thumb2.md to support ORN, but only for
> SImode.
>
> This patch adds DImode support, to cover the full 64|64->64 operation and
> the various 32|64->64 operations (see AND:DI variants that use NOT).
>
> The patch comes with its own execution test and looks for correct number of
> ORN instructions in the assembly.
>
> Regressions passed.
>
> OK for stage 1?
>
OK.
Do you not also need a pattern for
(ior:DI (not:DI (reg:DI))
(zero_extend:DI (reg:SI))
->
orn (lowpart)+ mvn(highpart)
I don't think one works for sign-extension, though.
R.
>
> 2014-02-19 Ian Bolton <ian.bolton@arm.com>
>
> gcc/
> * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
> (*iordi_notzesidi): New pattern.
> (*iordi_notsesidi_di): New pattern.
> testsuite/
> * gcc.target/arm/iordi_notdi-1.c: New test.
>