Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / i386 / pr54445-2.c
1 /* { dg-do compile { target { *-*-linux* && { ! { ia32 } } } } } */
2 /* { dg-options "-O2 -fno-pic" } */
3
4 __thread unsigned char tls_array[64];
5
6 unsigned char
7 tls_array_lookup_with_negative_constant(long long int position) {
8   return tls_array[position - 1];
9 }
10
11 /* { dg-final { scan-assembler "mov(b|zbl)\[ \t\](%fs:)?tls_array@tpoff-1\\(%" } } */