1 /* PR target/56564 */
2 /* { dg-do compile { target { *-*-linux* && lp64 } } } */
3 /* { dg-options "-O3 -fno-pic -fdump-tree-optimized" } */
4
5 __thread struct S { long a, b; } s = { 5, 6 };
6 __thread char t[16] = { 7 };
7
8 int
foo(void)9 foo (void)
10 {
11 return ((__UINTPTR_TYPE__) &s) & 15;
12 }
13
14 int
bar(void)15 bar (void)
16 {
17 return ((__UINTPTR_TYPE__) &t[0]) & 15;
18 }
19
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* } } } */
22