gcc/testsuite/gcc.dg/compat/pr38736_main.c
raw| 1 | /* PR target/38736 */ |
| 2 | /* { dg-skip-if "attribute ((aligned))" { ! { i?86-*-* x86_64-*-* } } } */ |
| 3 | /* { dg-require-effective-target avx_runtime } */ |
| 4 | |
| 5 | /* Test compatibility of attribute ((aligned)) with and without -mavx. */ |
| 6 | |
| 7 | extern int aligned_x (void); |
| 8 | extern int aligned_y_avx (void); |
| 9 | extern void abort (void); |
| 10 | |
| 11 | int |
| 12 | main () |
| 13 | { |
| 14 | if (aligned_x () != aligned_y_avx ()) |
| 15 | abort (); |
| 16 | |
| 17 | return 0; |
| 18 | } |