[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-6.2 18/34] target/arm: Implement MVE shift-by-scalar

From: Richard Henderson
Subject: Re: [PATCH for-6.2 18/34] target/arm: Implement MVE shift-by-scalar
Date: Fri, 16 Jul 2021 15:15:33 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 7/13/21 6:37 AM, Peter Maydell wrote:
Implement the MVE instructions which perform shifts by a scalar.
These are VSHL T2, VRSHL T2, VQSHL T1 and VQRSHL T2.  They take the
shift amount in a general purpose register and shift every element in
the vector by that amount.

Mostly we can reuse the helper functions for shift-by-immediate; we
do need two new helpers for VQRSHL.

Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
  target/arm/helper-mve.h    |  8 +++++++
  target/arm/mve.decode      | 23 ++++++++++++++++---
  target/arm/mve_helper.c    |  2 ++
  target/arm/translate-mve.c | 46 ++++++++++++++++++++++++++++++++++++++
  4 files changed, 76 insertions(+), 3 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]