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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrea Pinski <[email protected]>:

https://gcc.gnu.org/g:aa141f17fbab704e17e6c6cc046db91155b7bd21

commit r17-4637-gaa141f17fbab704e17e6c6cc046db91155b7bd21
Author: Andrea Pinski <[email protected]>
Date:   Thu Sep 24 21:15:41 2026 +0000

    aarch64: Fix aarch64_evpc_rev64_ext for testing_p case [PR127599]

    r17-3712-g4182cf11e1e3d2 added some code to expand a perm based
    on if we are in a loop or not.  The problem is in the testing
    case, the expanding stmt might not have a bb associated with it
    and that causes an ICE.

    This fixes the issue by moving the check for testing before
    the test of inside the loop.

    Pushed as obvious after bootstrapped and testing on aarch64-linux-gnu.

            PR target/127599

    gcc/ChangeLog:

            * config/aarch64/aarch64.cc (aarch64_evpc_rev64_ext): Move
            the testing_p after the is_bb_in_loop test.

    gcc/testsuite/ChangeLog:

            * gcc.dg/torture/pr127599-1.c: New testcase.
            * gcc.target/aarch64/advsimd-intrinsics/pr127599-1.c: New testcase.

    Signed-off-by: Andrea Pinski <[email protected]>

Reply via email to