summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c
blob: 3eabe1c6bf0ceecd87cc6fd3efab2431c170dc3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-ftls-model=local-dynamic -minline-plt -fpic -mfdpic" } */
/* { dg-do compile } */
static __thread int x;
extern void bar ();
int *y;

void foo (void)
{
  bar ();
  y = &x;
}
/* { dg-final { scan-assembler "lddi.*gottlsdesc12" } } */
/* { dg-final { scan-assembler "calll.*#gettlsoff\\(0\\)" } } */