[gcc r15-11406] aarch64: Extend comment about saving/restoring zt0
Alice Carlotti via Gcc-cvs <[email protected]>
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:d5a0a71e6457cbefa6aa2926854a084e15fafe2e commit r15-11406-gd5a0a71e6457cbefa6aa2926854a084e15fafe2e Author: Alice Carlotti <[email protected]> Date: Thu Apr 16 12:37:53 2026 +0100 aarch64: Extend comment about saving/restoring zt0 Explain why aarch64_start_call_args only needs to save and restore zt0 if the callee shares ZA state. gcc/ChangeLog: * config/aarch64/aarch64.cc (aarch64_start_call_args): Extend comment. Diff: --- gcc/config/aarch64/aarch64.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 75377626e70b..22e7be72fdb8 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -11636,7 +11636,8 @@ aarch64_start_call_args (cumulative_args_t ca_v) emit_insn (gen_aarch64_start_private_za_call ()); /* If this is a call to a shared-ZA function that doesn't share ZT0, - save and restore ZT0 around the call. */ + save and restore ZT0 around the call. If ZA is not shared, then the + save/restore is instead emitted by aarch64_mode_emit_local_sme_state. */ if (aarch64_cfun_has_state ("zt0") && (ca->isa_mode & AARCH64_ISA_MODE_ZA_ON) && ca->shared_zt0_flags == 0)