c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vec-strir_p-6.c
blob0c635d03a38d5fb3c151a9271d09611c831608f2
1 /* { dg-do compile } */
2 /* { dg-options "-mdejagnu-cpu=power10" } */
4 #include <altivec.h>
6 extern void abort (void);
8 /* Vector string isolate right-justified on array of signed short. */
9 int
10 sirj_p (vector signed short arg)
12 return vec_strir_p (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 {\mvstrihr\.} 1 { target { be } } } } */
19 /* { dg-final { scan-assembler-times {\mvstrihr\M[^.]} 0 { target { be } } } } */
20 /* { dg-final { scan-assembler-times {\mvstrihl} 0 { target { be } } } } */
21 /* { dg-final { scan-assembler-times {\mvstrihl\.} 1 { target { le } } } } */
22 /* { dg-final { scan-assembler-times {\mvstrihl\M[^.]} 0 { target { le } } } } */
23 /* { dg-final { scan-assembler-times {\mvstrihr} 0 { target { le } } } } */