summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/arm_align_max_pwr.c
blob: ffa4d229922afea17ac83a627d9af1ffa48d7d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */
/* { dg-options "-O1" } */

#define align (1ul << __ARM_ALIGN_MAX_PWR)
static int x __attribute__ ((aligned (align)));
static int y __attribute__ ((aligned (align)));

extern void foo (int *x, int *y);
extern int bar (int x, int y);

int
dummy ()
{
  int result;

  foo (&x, &y);
  result = bar (x, y);

  return result;
}

/* { dg-final { scan-assembler-times "zero\t4" 2 } } */
/* { dg-final { scan-assembler "zero\t268435452" } } */