blob: 17c5726be4f0a32b510f444d293fac39246f543c [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O3 -fPIC" } */
#include "tls.h"
/* foo must use the global dynamic model.
__tls_get_offset must be referenced through PLT. */
/* { dg-final { scan-assembler-times {\tbrasl\t%r14,__tls_get_offset@PLT:tls_gdcall:foo\n} 1 } } */
/* foostatic must use the local dynamic model.
__tls_get_offset must be referenced through PLT. */
/* { dg-final { scan-assembler-times {\tbrasl\t%r14,__tls_get_offset@PLT:tls_ldcall} 1 } } */