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

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

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

commit r14-12895-gc2eee09d92ddf1b676efd756e9f82c12f3e0a767
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