1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-require-effective-target powerpc_p8vector_ok } */
3 /* { dg-options "-mdejagnu-cpu=power8 -O2" } */
7 vector
unsigned long long
8 test_sra (vector
unsigned long long x
, vector
unsigned long long y
)
10 return vec_sra (x
, y
);
13 vector
unsigned long long
14 test_vsrad (vector
unsigned long long x
, vector
unsigned long long y
)
16 return vec_vsrad (x
, y
);
19 /* { dg-final { scan-assembler-times {\mvsrad\M} 2 } } */