Can tp / x4 be used as an ordinary temporary?
It should not. The psABI marks it unallocatable, and normal procedures should not modify it.
tp is the thread pointer in the psABI and is marked unallocatable. Normal procedures should not modify tp; the standard ABI says this because signal handlers and similar runtime contexts may rely on its value.
tp is marked unallocatable by the psABI. Normal procedures should not modify it because signal handlers, runtimes, or platform conventions may rely on its value.
tp / x4 is marked unallocatable by the psABI. Normal procedures should not modify it; it is not a normal caller-saved or callee-saved choice.
The psABI marks tp as unallocatable.
The psABI says normal procedures should not modify tp because signal handlers may rely on it.
It is not a normal caller-saved/callee-saved choice; it should not be allocated to ordinary code.
# Do not borrow tp in a normal function
# Concrete thread and TLS access forms depend on the target ABI/toolchain
# Use t0-t6 for temporaries, or save other registers according to the calling conventionIt should not. The psABI marks it unallocatable, and normal procedures should not modify it.
Neither in the usual sense; it is unallocatable, so ordinary code should not borrow it.