1 /* { dg-do run { target tls_runtime } } */
2 /* { dg-options "-O2" } */
3 /* { dg-add-options tls } */
5 __thread
unsigned char tls_array
[64];
8 __attribute__ ((noinline
))
9 tls_array_lookup_with_negative_constant(long long int position
) {
10 return tls_array
[position
- 1];
18 for (i
= 0; i
< sizeof (tls_array
) / sizeof (tls_array
[0]); i
++)
21 for (i
= 0; i
< sizeof (tls_array
) / sizeof (tls_array
[0]); i
++)
22 if (i
!= tls_array_lookup_with_negative_constant (i
+ 1))