1/* { dg-do compile { target ia32 } } */
2/* { dg-require-effective-target tls_native } */
3/* { dg-require-effective-target fpic } */
4/* { dg-options "-fPIC -mno-accumulate-outgoing-args -mpreferred-stack-boundary=2" } */
5
6extern __thread int msgdata;
7int
8foo ()
9{
10  return msgdata;
11}
12
13/* { dg-final { scan-assembler "andl\[\\t \]*\\$-16,\[\\t \]*%esp" } } */
14