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

void foo (void)
{
  bar ();
  y = &x;
}
/* { dg-final { scan-assembler "gettlsoff\\(0\\)" } } */
/* { dg-final { scan-assembler "tlsmoff12" } } */