1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
3 /* { dg-require-effective-target powerpc_p9vector_ok } */
4 /* { dg-options "-mcpu=power9" } */
5 
6 #include <altivec.h>
7 
8 int
test_all_not_equal_and_not_zero(vector unsigned char * arg1_p,vector unsigned char * arg2_p)9 test_all_not_equal_and_not_zero (vector unsigned char *arg1_p,
10 				 vector unsigned char *arg2_p)
11 {
12   vector unsigned char arg_1 = *arg1_p;
13   vector unsigned char arg_2 = *arg2_p;
14 
15   return vec_all_nez (arg_1, arg_2);
16 }
17 
18 /* { dg-final { scan-assembler "vcmpnezb." } } */
19