1 /* Include sysdeps/powerpc/tls-macros.h for __TLS_CALL_CLOBBERS */
2 #include_next "tls-macros.h"
4 /* PowerPC64 Local Exec TLS access. */
7 asm ("addis %0,13," #x "@tprel@ha\n\t" \
8 "addi %0,%0," #x "@tprel@l" \
12 /* PowerPC64 Initial Exec TLS access. */
15 asm ("ld %0," #x "@got@tprel(2)\n\t" \
16 "add %0,%0," #x "@tls" \
17 : "=r" (__result) ); \
21 #define __TLS_GET_ADDR "__tls_get_addr"
23 /* PowerPC64 Local Dynamic TLS access. */
26 asm ("addi 3,2," #x "@got@tlsld\n\t" \
27 "bl " __TLS_GET_ADDR "\n\t" \
29 "addis %0,3," #x "@dtprel@ha\n\t" \
30 "addi %0,%0," #x "@dtprel@l" \
32 : "3", __TLS_CALL_CLOBBERS); \
35 /* PowerPC64 General Dynamic TLS access. */
37 ({ register int *__result __asm__ ("r3"); \
38 asm ("addi 3,2," #x "@got@tlsgd\n\t" \
39 "bl " __TLS_GET_ADDR "\n\t" \
42 : __TLS_CALL_CLOBBERS); \