]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg: Mark muluh_i64 and mulsh_i64 as 64-bit ops
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 27 Mar 2018 03:37:24 +0000 (20:37 -0700)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:45:01 +0000 (20:45 -0500)
commit5aac5f6aeed01944e1b6acd03296a32b6c64570b
tree01e906208e5e1e169aee07dfd851bd7a03173285
parentc793a0debd54ac9e39b71a7e2f23b1d73e1ad040
tcg: Mark muluh_i64 and mulsh_i64 as 64-bit ops

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>
(cherry picked from commit f2f1dde75160cac6ede330f3db50dc817d01a2d6)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tcg/tcg-opc.h