1 /* { dg-do compile } */ 2 /* { dg-options "-O3 -fPIC" } */ 3 4 #include "tls.h" 5 6 /* foo must use the global dynamic model. 7 __tls_get_offset must be referenced through PLT. */ 8 9 /* { dg-final { scan-assembler-times {\tbrasl\t%r14,__tls_get_offset@PLT:tls_gdcall:foo\n} 1 } } */ 10 11 /* foostatic must use the local dynamic model. 12 __tls_get_offset must be referenced through PLT. */ 13 14 /* { dg-final { scan-assembler-times {\tbrasl\t%r14,__tls_get_offset@PLT:tls_ldcall} 1 } } */ 15