On 9/1/22 08:48, Paolo Bonzini wrote:
From: Paul Brook <p...@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 <p...@nowt.org>
Message-Id: <20220424220204.2493824-11-p...@nowt.org>
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@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