[testsuite] Fix directives order
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vsx-builtin-5.c
blob8f0607a74f9ae1d1dd013566fa2f78ff599f2f1d
1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
5 /* { dg-options "-O2 -mcpu=power7" } */
6 /* { dg-final { scan-assembler "xxpermdi" } } */
7 /* { dg-final { scan-assembler-not "stxvd2x" } } */
9 /* Make sure double extract doesn't use a store instruction. */
11 double d0(__vector double v){ return __builtin_vec_extract (v, 0); }
12 double d1(__vector double v){ return __builtin_vec_extract (v, 1); }
14 double e0(vector double v){ return __builtin_vec_ext_v2df (v, 0); }
15 double e1(vector double v){ return __builtin_vec_ext_v2df (v, 1); }