[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vec-stril-4.c
blob186208bb46a7722909c74b45d268d6b5caec41e0
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 unsigned short. */
9 vector unsigned short
10 silj (vector unsigned short 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 {\mvstrihl\M} 1 { target { be } } } } */
19 /* { dg-final { scan-assembler-times {\mvstrihr} 0 { target { be } } } } */
20 /* { dg-final { scan-assembler-times {\mvstrihr\M} 1 { target { le } } } } */
21 /* { dg-final { scan-assembler-times {\mvstrihl} 0 { target { le } } } } */