aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr54445-2.c
blob: 5151c132840168e0a89bce9401c09f1049048e00 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile { target { *-*-linux* && { ! { ia32 } } } } } */
/* { dg-options "-O2 -fno-pic" } */

__thread unsigned char tls_array[64];

unsigned char
tls_array_lookup_with_negative_constant(long long int position) {
  return tls_array[position - 1];
}

/* { dg-final { scan-assembler "mov(b|zbl)\[ \t\](%fs:)?tls_array@tpoff-1\\(%" } } */