diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-07-01 09:28:15 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2020-07-06 10:58:19 -0700 |
commit | 852f933e482518797f7785a2e017a215b88df815 (patch) | |
tree | 268e898809b41c5953ade7302d4c8cbd422902b9 /contrib | |
parent | 94248cfc04dfa08e43aacd9d5bbfba7a47bff671 (diff) |
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>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions