blob: c42bfae2860cc4fe5fda8f90e13fb2e5f8ff8a3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* PR target/56564 */
/* { dg-do compile { target { *-*-linux* && lp64 } } } */
/* { dg-options "-O3 -fno-pic -fno-ipa-icf -fdump-tree-optimized" } */
struct S { long a, b; } s = { 5, 6 };
char t[16] = { 7 };
int
foo (void)
{
return ((__UINTPTR_TYPE__) &s) & 15;
}
int
bar (void)
{
return ((__UINTPTR_TYPE__) &t[0]) & 15;
}
/* { dg-final { scan-tree-dump-times "&s" 0 "optimized" } } */
/* { dg-final { scan-tree-dump-times "&t" 0 "optimized" } } */
/* { dg-final { scan-tree-dump-times "return 0" 2 "optimized" } } */
/* { dg-final { scan-assembler ".align\[ \t]*16\[^:]*\[\n\r]s:" { target { *-*-linux* } } } } */
/* { dg-final { scan-assembler ".align\[ \t]*16\[^:]*\[\n\r]t:" { target { *-*-linux* } } } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|