1 /* { dg-do compile { target { powerpc64*-*-* } } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-options "-mdejagnu-cpu=power8 -mvsx -O2" } */
5 /* Verify that we optimize vector1 = (vector2 != vector3) by not loading up
9 test (vector
unsigned char a
, vector
unsigned char b
)
14 /* { dg-final { scan-assembler {\mvcmpequb\M} } } */
15 /* { dg-final { scan-assembler {\mxxlnor\M} } } */
16 /* { dg-final { scan-assembler-not {\mxxspltib\M} } } */
17 /* { dg-final { scan-assembler-not {\mvspltisw\M} } } */
18 /* { dg-final { scan-assembler-not {\mxxlxor\M} } } */
19 /* { dg-final { scan-assembler-not {\mxxlxorc\M} } } */
20 /* { dg-final { scan-assembler-not {\mxxsel\M} } } */