On 10/28/26 09:33, Philippe Mathieu-Daudé wrote:
tcg_out_cmpsel() takes constants as TCGReg and passes them to the
encoders unextracted. In a release build, "cmlt v0.8h, #0" emitted
the illegal instruction 0xffffb057.

Use TCGArg for these operands and extract the element with
vec_imm() before encoding, including before the LT/GE adjustment.

Fixes: 006352d69f14 ("tcg/riscv64: Assert immediate in range ...")
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
---
  tcg/riscv64/tcg-target.c.inc | 13 +++++++------
  1 file changed, 7 insertions(+), 6 deletions(-)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to