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 signed char * arg1_p,vector signed char * arg2_p)8 test_all_not_equal_and_not_zero (vector signed char *arg1_p,
9 				 vector signed char *arg2_p)
10 {
11   vector signed char arg_1 = *arg1_p;
12   vector signed char arg_2 = *arg2_p;
13 
14   return vec_all_nez (arg_1, arg_2);
15 }
16 
17 /* { dg-final { scan-assembler "vcmpnezb." } } */
18