1 /* { dg-do compile { target { powerpc64le-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } }
3 /* { dg-options "-O2 -mcpu=power8 -maltivec" } */
5 /* The expansion for vector character multiply introduces a vperm operation.
6 This tests that changing the vperm mask allows us to remove all swaps
7 from the generated code. */
13 vector
unsigned char r
;
14 vector
unsigned char v
=
15 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
16 vector
unsigned char i
=
17 { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
26 /* { dg-final { scan-assembler-times "vperm" 1 } } */
27 /* { dg-final { scan-assembler-not "xxpermdi" } } */