Is t4 / x29 preserved across calls?
No. t0-t6 are temporary registers and are not preserved across calls.
Temporary register 4 (x29). The standard psABI marks t4 as not preserved across calls.
The psABI marks t0-t6 as temporary registers. They are not callee-saved; callers must save any value that needs to survive a call.
t4 / x29 belongs to the t0-t6 temporary-register group. The psABI marks it not preserved across calls; callers must save any value that needs to survive a call.
t4 is a standard-psABI temporary register and is not preserved across calls.
Contents not specified as return values or callee-saved are unspecified on procedure exit.
This rule applies to the standard calling convention.
# t4: temporary register, not preserved across calls
# Scope: standard psABI calling conventionNo. t0-t6 are temporary registers and are not preserved across calls.
The caller must save it before the call, usually to the stack or another suitable location, and restore it afterward.