[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vec-clrr-2.c
blobf09be49e0ab1d99e3929a679fce3d12edc6d9e75
1 /* { dg-do compile } */
2 /* { dg-options "-mdejagnu-cpu=power10" } */
4 #include <altivec.h>
6 extern void abort (void);
8 /* Vector string clear right-most bytes of unsigned char. */
9 vector signed char
10 clrr (vector signed char arg, int n)
12 return vec_clrr (arg, n);
15 /* { dg-final { scan-assembler {\mvclrrb\M} { target be } } } */
16 /* { dg-final { scan-assembler {\mvclrlb\M} { target le } } } */