* [Qemu-devel] [PULL for-2.12 0/1] tcg mul[us]h fix @ 2018-03-28 4:51 Richard Henderson 2018-03-28 4:51 ` [Qemu-devel] [PULL 1/1] tcg: Mark muluh_i64 and mulsh_i64 as 64-bit ops Richard Henderson 2018-03-28 15:36 ` [Qemu-devel] [PULL for-2.12 0/1] tcg mul[us]h fix Peter Maydell 0 siblings, 2 replies; 3+ messages in thread From: Richard Henderson @ 2018-03-28 4:51 UTC (permalink / raw) To: qemu-devel; +Cc: qemu-stable, peter.maydell This is material for stable as well. r~ The following changes since commit fa3704d87720d7049d483ff669b9e2ff991e7658: Update version for v2.12.0-rc1 release (2018-03-27 22:04:23 +0100) are available in the Git repository at: git://github.com/rth7680/qemu.git tags/pull-tcg-20180328 for you to fetch changes up to f2f1dde75160cac6ede330f3db50dc817d01a2d6: tcg: Mark muluh_i64 and mulsh_i64 as 64-bit ops (2018-03-28 12:45:16 +0800) ---------------------------------------------------------------- Fix muluh_i64 and mulsh_i64 flags ---------------------------------------------------------------- Richard Henderson (1): tcg: Mark muluh_i64 and mulsh_i64 as 64-bit ops tcg/tcg-opc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL 1/1] tcg: Mark muluh_i64 and mulsh_i64 as 64-bit ops 2018-03-28 4:51 [Qemu-devel] [PULL for-2.12 0/1] tcg mul[us]h fix Richard Henderson @ 2018-03-28 4:51 ` Richard Henderson 2018-03-28 15:36 ` [Qemu-devel] [PULL for-2.12 0/1] tcg mul[us]h fix Peter Maydell 1 sibling, 0 replies; 3+ messages in thread From: Richard Henderson @ 2018-03-28 4:51 UTC (permalink / raw) To: qemu-devel; +Cc: qemu-stable, peter.maydell Failure to do so results in the tcg optimizer sign-extending any constant fold from 32-bits. This turns out to be visible in the RISC-V testsuite using a host that emits these opcodes (e.g. any non-x86_64). Reported-by: Michael Clark <mjc@sifive.com> Reviewed-by: Emilio G. Cota <cota@braap.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/tcg-opc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcg/tcg-opc.h b/tcg/tcg-opc.h index d81a6c4535..e3a43aabb6 100644 --- a/tcg/tcg-opc.h +++ b/tcg/tcg-opc.h @@ -182,8 +182,8 @@ DEF(add2_i64, 2, 4, 0, IMPL64 | IMPL(TCG_TARGET_HAS_add2_i64)) DEF(sub2_i64, 2, 4, 0, IMPL64 | IMPL(TCG_TARGET_HAS_sub2_i64)) DEF(mulu2_i64, 2, 2, 0, IMPL64 | IMPL(TCG_TARGET_HAS_mulu2_i64)) DEF(muls2_i64, 2, 2, 0, IMPL64 | IMPL(TCG_TARGET_HAS_muls2_i64)) -DEF(muluh_i64, 1, 2, 0, IMPL(TCG_TARGET_HAS_muluh_i64)) -DEF(mulsh_i64, 1, 2, 0, IMPL(TCG_TARGET_HAS_mulsh_i64)) +DEF(muluh_i64, 1, 2, 0, IMPL64 | IMPL(TCG_TARGET_HAS_muluh_i64)) +DEF(mulsh_i64, 1, 2, 0, IMPL64 | IMPL(TCG_TARGET_HAS_mulsh_i64)) #define TLADDR_ARGS (TARGET_LONG_BITS <= TCG_TARGET_REG_BITS ? 1 : 2) #define DATA64_ARGS (TCG_TARGET_REG_BITS == 64 ? 1 : 2) -- 2.14.3 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL for-2.12 0/1] tcg mul[us]h fix 2018-03-28 4:51 [Qemu-devel] [PULL for-2.12 0/1] tcg mul[us]h fix Richard Henderson 2018-03-28 4:51 ` [Qemu-devel] [PULL 1/1] tcg: Mark muluh_i64 and mulsh_i64 as 64-bit ops Richard Henderson @ 2018-03-28 15:36 ` Peter Maydell 1 sibling, 0 replies; 3+ messages in thread From: Peter Maydell @ 2018-03-28 15:36 UTC (permalink / raw) To: Richard Henderson; +Cc: QEMU Developers, qemu-stable On 28 March 2018 at 05:51, Richard Henderson <richard.henderson@linaro.org> wrote: > This is material for stable as well. > > > r~ > > > The following changes since commit fa3704d87720d7049d483ff669b9e2ff991e7658: > > Update version for v2.12.0-rc1 release (2018-03-27 22:04:23 +0100) > > are available in the Git repository at: > > git://github.com/rth7680/qemu.git tags/pull-tcg-20180328 > > for you to fetch changes up to f2f1dde75160cac6ede330f3db50dc817d01a2d6: > > tcg: Mark muluh_i64 and mulsh_i64 as 64-bit ops (2018-03-28 12:45:16 +0800) > > ---------------------------------------------------------------- > Fix muluh_i64 and mulsh_i64 flags > > ---------------------------------------------------------------- > Richard Henderson (1): > tcg: Mark muluh_i64 and mulsh_i64 as 64-bit ops Applied, thanks. -- PMM ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-28 15:37 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-03-28 4:51 [Qemu-devel] [PULL for-2.12 0/1] tcg mul[us]h fix Richard Henderson 2018-03-28 4:51 ` [Qemu-devel] [PULL 1/1] tcg: Mark muluh_i64 and mulsh_i64 as 64-bit ops Richard Henderson 2018-03-28 15:36 ` [Qemu-devel] [PULL for-2.12 0/1] tcg mul[us]h fix Peter Maydell
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).