blob: 0819a0511b7c202f31b1b5f643d33b437851bd34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-require-effective-target powerpc_p8vector_ok } */
/* { dg-options "-mdejagnu-cpu=power8" } */
int
main ()
{
__attribute__((altivec(vector__))) unsigned long long test, res;
const int s0 = 0;
int mask;
/* Argument 2 must be 0 or 1. Argument 3 must be in range 0..15. */
res = __builtin_crypto_vshasigmad (test, 1, 0xff); /* { dg-error {argument 3 must be a 4-bit unsigned literal} } */
return 0;
}
|