[testsuite] Fix directives order
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / p8vector-vectorize-3.c
blob7917e14658baf81bace78becae11252ca0992999
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_p8vector_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
5 /* { dg-options "-mcpu=power8 -O2 -ftree-vectorize -fvect-cost-model=dynamic" } */
7 #include <stddef.h>
9 #ifndef SIZE
10 #define SIZE 1024
11 #endif
13 #ifndef ALIGN
14 #define ALIGN 32
15 #endif
17 #define ALIGN_ATTR __attribute__((__aligned__(ALIGN)))
19 long long sign_ll[SIZE] ALIGN_ATTR;
20 int sign_i [SIZE] ALIGN_ATTR;
22 void copy_long_long_to_int (void)
24 size_t i;
26 for (i = 0; i < SIZE; i++)
27 sign_i[i] = sign_ll[i];
30 /* { dg-final { scan-assembler "vpkudum" } } */