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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Alfie Richards
<[email protected]>:

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

commit r15-11597-gea3a617121455260ffff00a3b3744548ea45b6e1
Author: Alfie Richards <[email protected]>
Date:   Wed Sep 2 09:41:07 2026 +0000

    AArch64: Fix for FFR CSE bug [PR126629]

    Fixes invalid CSE on read FFR's.

    This approach moves the entire SET src UNSPEC into the update_ffr
    "token" parameter.

            PR target/126629

    gcc/ChangeLog:

            * config/aarch64/aarch64-sve-builtins-base.cc
            (emit_ldf1_ffr_update): New.
            (svldff1_gather_impl::expand): Change ffr update.
            (svldff1_gather_extend::expand): Likewise.
            (svldxf1_impl::expand): Likewise.
            (svldxf1_extend_impl::expand): Likewise.
            * config/aarch64/aarch64-sve.md (aarch64_update_ffr_for_load):
            Change to...
            (@aarch64_update_ffr<mode>): ...this.

    gcc/testsuite/ChangeLog:

            * gcc.target/aarch64/sve/pr126629.c: New test.
            * gcc.target/aarch64/sve/pr126629_extend.c: New test.
            * gcc.target/aarch64/sve/pr126629_gather.c: New test.
            * gcc.target/aarch64/sve/pr126629_gather2.c: New test.

    Co-authored-by: Tamar Christina <[email protected]>
    (cherry picked from commit r17-3904-gb3474d5cddda18 and
r17-4248-gd956c5ad043f76)

Reply via email to