1 /* { dg-do compile { target { powerpc64*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
3 /* { dg-require-effective-target powerpc_p8vector_ok } */
4 /* { dg-options "-mcpu=power8 -O2" } */
6 /* Verify that we optimize vector1 = (vector2 != vector3) by not loading up
10 test (vector
unsigned char a
, vector
unsigned char b
)
15 /* { dg-final { scan-assembler {\mvcmpequb\M} } } */
16 /* { dg-final { scan-assembler {\mxxlnor\M} } } */
17 /* { dg-final { scan-assembler-not {\mxxspltib\M} } } */
18 /* { dg-final { scan-assembler-not {\mvspltisw\M} } } */
19 /* { dg-final { scan-assembler-not {\mxxlxor\M} } } */
20 /* { dg-final { scan-assembler-not {\mxxlxorc\M} } } */
21 /* { dg-final { scan-assembler-not {\mxxsel\M} } } */