https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119210
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Alice Carlotti <[email protected]>: https://gcc.gnu.org/g:c1d1bf1f42523dad8e10056fa7058d9d67648a3f commit r14-12758-gc1d1bf1f42523dad8e10056fa7058d9d67648a3f Author: Alice Carlotti <[email protected]> Date: Thu Apr 16 13:02:35 2026 +0100 aarch64: Fix ZA state transition [PR119210] In the INACTIVE_CALLER -> INACTIVE LOCAL transition, ensure ZA is active and zeroed before setting tpidr2_el0. gcc/ChangeLog: PR target/119210 * config/aarch64/aarch64.cc (aarch64_mode_emit_local_sme_state): Add PSTATE.ZA enablement, and zero it if already enabled. gcc/testsuite/ChangeLog: PR target/119210 * gcc.target/aarch64/sme/za_state_8.c: New test.
