[testsuite] Fix directives order
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / swaps-p8-39.c
blob8cd68ddcd72040d0f1a763ab16cc6fb6931f30ae
1 /* { dg-do compile { target { powerpc64le-*-* } } } */
2 /* { dg-require-effective-target powerpc_p8vector_ok } */
3 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
4 /* { dg-options "-mcpu=power8 -O3 " } */
5 /* { dg-final { scan-assembler-not "xxpermdi" } } */
6 /* { dg-final { scan-assembler-not "xxswapd" } } */
8 #include <altivec.h>
10 extern void abort (void);
12 const vector float y = { 0.0f, 0.1f, 0.2f, 0.3f };
14 vector float
15 foo (void)
17 return y;
20 int
21 main (int argc, char *argv[])
23 vector float fetched_value = foo ();
24 if (fetched_value[0] != 0.0f || fetched_value[3] != 0.3)
25 abort ();
26 else
27 return 0;