summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/20020118-1.c
blob: 49197b49032b589f8825d482078f6661e42e6d58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do run { target powerpc*-*-* } }*/
/* VxWorks only guarantees 64 bits of alignment (STACK_BOUNDARY == 64).  */
/* { dg-skip-if "" { "powerpc*-*-vxworks*" } { "*" } { "" } } */

/* Test local alignment.  Test new target macro STARTING_FRAME_PHASE.  */
/* Origin: Aldy Hernandez <aldyh@redhat.com>.  */

extern void abort(void);

int main ()
{       
  int darisa[4] __attribute__((aligned(16))) ;
  int *stephanie = (int *) darisa;

  if ((unsigned long) stephanie % 16 != 0)
    abort ();

  return 0;
}