2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / noplt-gd-3.c
blob6b0e780b74503972e128e1d7f192644cb4c49294
1 /* { dg-do compile { target { *-*-linux* && { ia32 && tls_get_addr_via_got } } } } */
2 /* { dg-options "-fpic -fno-plt" } */
4 extern __thread int gd;
6 int *
7 get_gd (void)
9 return &gd;
12 /* { dg-final { scan-assembler-not "call\[ \t\]\\*___tls_get_addr@GOT\\(%ebx\\)" } } */