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

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Alice Carlotti
<[email protected]>:

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

commit r16-9318-gc7c77ec3190e37cc079ef1a88521af485d7224be
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.

Reply via email to