PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr56564-2.c
blob9432e67922aff4d88308505999f3bf60fcd30587
1 /* PR target/56564 */
2 /* { dg-do compile { target { *-*-linux* && lp64 } } } */
3 /* { dg-options "-O3 -fno-pic -fno-ipa-icf -fdump-tree-optimized" } */
5 struct S { long a, b; } s = { 5, 6 };
6 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-tree-dump-times "&s" 0 "optimized" } } */
21 /* { dg-final { scan-tree-dump-times "&t" 0 "optimized" } } */
22 /* { dg-final { scan-tree-dump-times "return 0" 2 "optimized" } } */
23 /* { dg-final { scan-assembler ".align\[ \t]*16\[^:]*\[\n\r]s:" { target *-*-linux* } } } */
24 /* { dg-final { scan-assembler ".align\[ \t]*16\[^:]*\[\n\r]t:" { target *-*-linux* } } } */