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