On 9/11/24 06:26, LIU Zhiwei wrote:
From: TANG Tiancheng<tangtiancheng....@alibaba-inc.com>

1.Address immediate value constraints in RISC-V Vector Extension 1.0 for
comparison instructions.

2.Extend comparison results from mask registers to SEW-width elements,
   following recommendations in The RISC-V SPEC Volume I (Version 20240411).

This aligns with TCG's cmp_vec behavior by expanding compare results to
full element width: all 1s for true, all 0s for false.

Expand cmp with cmpsel.

Signed-off-by: TANG Tiancheng<tangtiancheng....@alibaba-inc.com>
Reviewed-by: Liu Zhiwei<zhiwei_...@linux.alibaba.com>
---
  tcg/riscv/tcg-target-con-set.h |   2 +
  tcg/riscv/tcg-target-con-str.h |   2 +
  tcg/riscv/tcg-target.c.inc     | 251 +++++++++++++++++++++++++++------
  tcg/riscv/tcg-target.h         |   2 +-
  4 files changed, 209 insertions(+), 48 deletions(-)

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

r~

Reply via email to