[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vec-stril-2.c
blob0face99d4a7d4f6d0f9103b9ff015fe239af1d2a
1 /* { dg-do compile } */
2 /* { dg-options "-mdejagnu-cpu=power10" } */
4 #include <altivec.h>
6 extern void abort (void);
8 /* Vector string isolate left-justified on array of signed char. */
9 vector signed char
10 silj (vector signed char arg)
12 return vec_stril (arg);
15 /* Enforce that a single dot-form instruction which is properly biased
16 for the target's endianness implements this built-in. */
18 /* { dg-final { scan-assembler-times {\mvstribl\M} 1 { target { be } } } } */
19 /* { dg-final { scan-assembler-times {\mvstribr\M} 0 { target { be } } } } */
20 /* { dg-final { scan-assembler-times {\mvstribr\M} 1 { target { le } } } } */
21 /* { dg-final { scan-assembler-times {\mvstribl\M} 0 { target { le } } } } */