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
count_trailing_zero_byte_bits(vector signed char * arg1_p)8 count_trailing_zero_byte_bits (vector signed char *arg1_p)
9 {
10   vector signed char arg_1 = *arg1_p;
11 
12   return vec_cnttz_lsbb (arg_1);
13 }
14 
15 /* { dg-final { scan-assembler "vctzlsbb" } } */
16