1 /* { dg-do compile { target { powerpc64*-*-* } } } */
2 /* { dg-require-effective-target powerpc_p9vector_ok } */
3 /* { dg-options "-mdejagnu-cpu=power9 -O2" } */
4 
5 /* Verify that we optimize vector1 = (vector2 == vector3) by not loading up
6    0/-1.  */
7 
8 vector int
test(vector int a,vector int b)9 test (vector int a, vector int b)
10 {
11   return a == b;
12 }
13 
14 /* { dg-final { scan-assembler     {\mvcmpequw\M} } } */
15 /* { dg-final { scan-assembler-not {\mxxspltib\M} } } */
16 /* { dg-final { scan-assembler-not {\mvspltisw\M} } } */
17 /* { dg-final { scan-assembler-not {\mxxlxor\M}   } } */
18 /* { dg-final { scan-assembler-not {\mxxlxorc\M}  } } */
19 /* { dg-final { scan-assembler-not {\mxxsel\M}    } } */
20