qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v3 12/23] i386: Rewrite vector shift helper


From: Richard Henderson
Subject: Re: [PATCH v3 12/23] i386: Rewrite vector shift helper
Date: Thu, 1 Sep 2022 09:11:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 9/1/22 08:48, Paolo Bonzini wrote:
From: Paul Brook <paul@nowt.org>

Rewrite the vector shift helpers in preperation for AVX support (3 operand
form and 256 bit vectors).

For now keep the existing two operand interface.

No functional changes to existing helpers.

Signed-off-by: Paul Brook <paul@nowt.org>
Message-Id: <20220424220204.2493824-11-paul@nowt.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
  target/i386/ops_sse.h | 247 +++++++++++++++++++-----------------------
  1 file changed, 112 insertions(+), 135 deletions(-)

diff --git a/target/i386/ops_sse.h b/target/i386/ops_sse.h
index 2c0090a647..a4a09226e3 100644
--- a/target/i386/ops_sse.h
+++ b/target/i386/ops_sse.h
@@ -40,6 +40,8 @@
  #define SUFFIX _xmm
  #endif
+#define LANE_WIDTH (SHIFT ? 16 : 8)

Much better, thanks.


r~



reply via email to

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