https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113221

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>:

https://gcc.gnu.org/g:7a8124e341aebcc544b4720e920b625f4ffe4e8a

commit r14-8194-g7a8124e341aebcc544b4720e920b625f4ffe4e8a
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Tue Jan 16 15:37:49 2024 -0800

    aarch64: Fix aarch64_ldp_reg_operand predicate not to allow all subreg
[PR113221]

    So the problem here is that aarch64_ldp_reg_operand will all subreg even
subreg of lo_sum.
    When LRA tries to fix that up, all things break. So the fix is to change
the check to only
    allow reg and subreg of regs.

    Note the tendancy here is to use register_operand but that checks the mode
of the register
    but we need to allow a mismatch modes for this predicate for now.

    Built and tested for aarch64-linux-gnu with no regressions
    (Also tested with the LD/ST pair pass back on).

            PR target/113221

    gcc/ChangeLog:

            * config/aarch64/predicates.md (aarch64_ldp_reg_operand): For
subreg,
            only allow REG operands instead of allowing all.

    gcc/testsuite/ChangeLog:

            * gcc.c-torture/compile/pr113221-1.c: New test.

    Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>

Reply via email to