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_any_equal_or_zero(vector unsigned short * arg1_p,vector unsigned short * arg2_p)8test_any_equal_or_zero (vector unsigned short *arg1_p, 9 vector unsigned short *arg2_p) 10 { 11 vector unsigned short arg_1 = *arg1_p; 12 vector unsigned short arg_2 = *arg2_p; 13 14 return vec_any_eqz (arg_1, arg_2); 15 } 16 17 /* { dg-final { scan-assembler "vcmpnezh." } } */ 18