Create embedded-5_0-branch branch for development on ARM embedded cores.
[official-gcc.git] / embedded-5_0-branch / gcc / testsuite / gcc.target / i386 / pr54445-2.c
blobf0ca9dc298ee341869a36eef959a8db31a552cf0
1 /* { dg-do compile { target { *-*-linux* && { ! { ia32 } } } } } */
2 /* { dg-options "-O2 -fno-pic" } */
4 __thread unsigned char tls_array[64];
6 unsigned char
7 tls_array_lookup_with_negative_constant(long long int position) {
8 return tls_array[position - 1];
11 /* { dg-final { scan-assembler "mov(b|zbl)\[ \t\](%fs:)?(-1\\+)?tls_array@tpoff(-1)?\\(%" } } */