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

void foo (void)
{
  bar ();
  y = &x;
}
/* { dg-final { scan-assembler "ld.*#gottlsoff12" } } */