PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr56564-4.c
blob935a98a85a2aa8f9507265fa983faaaf51e431e1
1 /* PR target/56564 */
2 /* { dg-do compile { target { *-*-linux* && lp64 } } } */
3 /* { dg-options "-O3 -fno-pic -fdump-tree-optimized" } */
5 __thread struct S { long a, b; } s = { 5, 6 };
6 __thread char t[16] = { 7 };
8 int
9 foo (void)
11 return ((__UINTPTR_TYPE__) &s) & 15;
14 int
15 bar (void)
17 return ((__UINTPTR_TYPE__) &t[0]) & 15;
20 /* { dg-final { scan-assembler-not ".align\[ \t]*16\[^:]*\[\n\r]s:" { target *-*-linux* } } } */
21 /* { dg-final { scan-assembler ".align\[ \t]*16\[^:]*\[\n\r]t:" { target *-*-linux* } } } */