blob: 36544b2c8ec3684f612fea021af30824c3cb6693 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* Verify that overloaded built-ins for vec_cntlz with int
inputs produce the right results. */
/* { dg-do compile } */
/* { dg-options "-maltivec -mvsx -O2" } */
/* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
/* { dg-require-effective-target powerpc_vsx } */
#include <altivec.h>
vector signed int
testsi (vector signed int vsi2)
{
return vec_cntlz (vsi2);
}
vector unsigned int
testui (vector unsigned int vui2)
{
return vec_cntlz (vui2);
}
/* { dg-final { scan-assembler-times "vclzw" 2 } } */
|