1 /* { dg-do compile { target { powerpc64le-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
3 /* { dg-options "-mcpu=power9 -O2" } */
4 /* { dg-require-effective-target powerpc_p9vector_ok } */
11 return (vector
int) { a
, a
, a
, a
}; /* mtvsrws */
17 return vec_splats (a
); /* mtvsrws */
23 return (vector
int) { *a
, *a
, *a
, *a
}; /* lxvwsx */
26 /* { dg-final { scan-assembler-times "mtvsrws" 2 } } */
27 /* { dg-final { scan-assembler-times "lxvwsx" 1 } } */