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