This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Backport: [Patch AArch64] Reinstate CANNOT_CHANGE_MODE_CLASS to fix pr67609
- From: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>
- To: James Greenhalgh <james dot greenhalgh at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, nd at arm dot com, Marcus Shawcroft <marcus dot shawcroft at arm dot com>, Richard Earnshaw <richard dot earnshaw at arm dot com>
- Date: Tue, 12 Jan 2016 10:32:01 +0000
- Subject: Re: Backport: [Patch AArch64] Reinstate CANNOT_CHANGE_MODE_CLASS to fix pr67609
- Authentication-results: sourceware.org; auth=none
- References: <CAFqB+PySZ=A2C7CYu5QFTeXm7fBD+JD3cswUqhdeC+c4p0XVPw at mail dot gmail dot com> <1450440811-2928-1-git-send-email-james dot greenhalgh at arm dot com>
On 18 December 2015 at 12:13, James Greenhalgh <james.greenhalgh@arm.com> wrote:
> Looking back at the patch just before I hit commit, the 4.9 backport was
> a little different (as we still have a CANNOT_CHANGE_MODE_CLASS there).
> We can drop the aarch64-protos.h and aarch64.h changes, and we need to
> change the sense of the new check, such that we can return true for the
> case added by this patch, and false for the limited number of other safe
> cases in 4.9.
>
> Bootstrapped on aarch64-none-linux-gnu.
>
> OK?
>
> Thanks,
> James
>
> ---
> gcc/
>
> 2015-12-14 James Greenhalgh <james.greenhalgh@arm.com>
>
> Backport from mainline.
> 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
>
> PR rtl-optimization/67609
> * config/aarch64/aarch64.c
> (aarch64_cannot_change_mode_class): Don't permit word_mode
> subregs of full vector modes.
> * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
> zero_extract rather than truncate.
> (aarch64_movdi_<mode>high): Likewise.
>
> gcc/testsuite/
>
> 2015-12-14 James Greenhalgh <james.greenhalgh@arm.com>
>
> Backport from mainline.
> 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
>
> PR rtl-optimization/67609
> * gcc.dg/torture/pr67609.c: New.
>
OK /Marcus