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