https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126629
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Alfie Richards <[email protected]>: https://gcc.gnu.org/g:e03e414c5893bdba3c16cb616d191cce9fab4c55 commit r16-9715-ge03e414c5893bdba3c16cb616d191cce9fab4c55 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 d956c5ad043f767bcde25e09ec48917afb2c8e8c)
