tcg/riscv: Fix range matched by TCG_CT_CONST_M12
commit627227636127c44df0e01ab8fd9fae3f731fa8b0
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 22 Oct 2022 09:58:21 +0000 (22 19:58 +1000)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 6 Jan 2023 00:42:55 +0000 (6 10:42 +1000)
treee92bf53c3dedec498a677cb9c841e972ebac610f
parent824cac681c3e2a6ac2d661c86befd7c36359c924
tcg/riscv: Fix range matched by TCG_CT_CONST_M12

We were matching a signed 13-bit range, not a 12-bit range.
Expand the commentary within the function and be explicit
about all of the ranges.

Reported-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221022095821.2441874-1-richard.henderson@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
tcg/riscv/tcg-target.c.inc