3 extern void *__tls_get_addr (void *); \
4 __asm__ ("MOV %0, A1LbP\n\t" \
5 "ADD %0, %0, #(" #x "@TLSGD)" \
7 (int *)__tls_get_addr (__result); })
11 extern void *__tls_get_addr (void *); \
12 __asm__ ("MOV %0, A1LbP\n\t" \
13 "ADD %0, %0, #(" #x "@TLSLDM)" \
15 __result = __tls_get_addr (__result); \
16 __asm__ ("ADDT %0,%0,#HI(" #x "@TLSLDO)\n\t" \
17 "ADD %0,%0,#LO(" #x "@TLSLDO)" \
23 unsigned long __rel; \
24 extern void *__metag_load_tp (void); \
25 __asm__ ("GETD %0,[A1LbP+#(" #x "@TLSIE)]" \
27 __result = __metag_load_tp(); \
32 extern void *__metag_load_tp (void); \
33 __result = __metag_load_tp(); \
34 __asm__ ("ADDT %0,%0,#HI(" #x "@TLSLE)\n\t" \
35 "ADD %0,%0,#LO(" #x "@TLSLE)" \