blob: 83f78de4e7665d276dca466c907f5765c5ba27b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* { dg-options "-ftls-model=local-exec -mfdpic -mTLS" } */
/* { dg-do compile } */
static __thread int x;
extern void bar ();
int *y;
void foo (void)
{
bar ();
y = &x;
}
/* { dg-final { scan-assembler "sethi.*tlsmoffhi\\(x\\)," } } */
|