summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compat/pr38736_main.c
blob: 8f221083c903603a5f7e126bb692b46245f4fc96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR target/38736 */
/* { dg-skip-if "attribute ((aligned))" { ! { i?86-*-* x86_64-*-* } } } */
/* { dg-require-effective-target avx_runtime } */

/* Test compatibility of attribute ((aligned)) with and without -mavx.  */

extern int aligned_x (void);
extern int aligned_y_avx (void);
extern void abort (void);

int
main ()
{
  if (aligned_x () != aligned_y_avx ())
    abort ();

  return 0;
}