These built-in functions are available for the RISC-V family of processors.
void * __builtin_thread_pointer (void)
Returns the value that is currently set in the ‘tp’ register.
void __builtin_riscv_pause (void)
Generates the pause (hint) machine instruction. If the target implements the Zihintpause extension, it indicates that the current hart should be temporarily paused or slowed down.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/RISC_002dV-Built_002din-Functions.html