On 6/6/19 5:15 AM, Stefan Brankovic wrote: > Optimize Altivec instruction vclzd (Vector Count Leading Zeros Doubleword). > This instruction counts the number of leading zeros of each doubleword element > in source register and places result in the appropriate doubleword element of > destination register. > > Using tcg-s count leading zeros instruction two times(once for each > doubleword element of source register vB) and placing result in > appropriate doubleword element of destination register vD. > > Signed-off-by: Stefan Brankovic <stefan.branko...@rt-rk.com> > --- > target/ppc/translate/vmx-impl.inc.c | 28 +++++++++++++++++++++++++++- > 1 file changed, 27 insertions(+), 1 deletion(-)
Once the vclzd helper is removed, Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~