[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr80315-4.c
blobc003c9ba799a2bbb92cdfa7cbcd8f6ed0f8bfaba
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-options "-mdejagnu-cpu=power8 -mvsx" } */
5 #include <altivec.h>
7 vector unsigned long long int
8 main ()
10 vector unsigned long long int test, res;
11 const int s0 = 0;
12 int mask;
14 /* Argument 2 must be 0 or 1. Argument 3 must be in range 0..15. */
15 res = vec_shasigma_be (test, 1, 0xff); /* { dg-error {argument 3 must be a literal between 0 and 15, inclusive} } */
16 return res;