1 /* Verify that overloaded built-ins for vec_cntlz with long long
2    inputs produce the right results.  */
3 
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-options "-mvsx -mpower8-vector -O2" } */
7 
8 #include <altivec.h>
9 
10 vector signed long long
testsl(vector signed long long vsl2)11 testsl (vector signed long long vsl2)
12 {
13   return vec_cntlz (vsl2);
14 }
15 
16 vector unsigned long long
testul(vector unsigned long long vul2)17 testul (vector unsigned long long vul2)
18 {
19   return vec_cntlz (vul2);
20 }
21 
22 /* { dg-final { scan-assembler-times "vclzd" 2 } } */
23