diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/pr38736_main.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/pr38736_main.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/pr38736_main.c b/gcc/testsuite/gcc.dg/compat/pr38736_main.c new file mode 100644 index 000000000..8f221083c --- /dev/null +++ b/gcc/testsuite/gcc.dg/compat/pr38736_main.c @@ -0,0 +1,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; +} |