]> git.proxmox.com Git - mirror_qemu.git/commit
tcg: Fix do_nonatomic_op_* vs signed operations
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 1 Jul 2020 16:28:15 +0000 (09:28 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 6 Jul 2020 17:58:19 +0000 (10:58 -0700)
commit852f933e482518797f7785a2e017a215b88df815
tree268e898809b41c5953ade7302d4c8cbd422902b9
parent94248cfc04dfa08e43aacd9d5bbfba7a47bff671
tcg: Fix do_nonatomic_op_* vs signed operations

The smin/smax/umin/umax operations require the operands to be
properly sign extended.  Do not drop the MO_SIGN bit from the
load, and additionally extend the val input.

Reviewed-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Reported-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200701165646.1901320-1-richard.henderson@linaro.org>
tcg/tcg-op.c