Re: [Qemu-devel] [PATCH 2/2] tcg/optimize: fix constant signedness

2015-07-10 Thread Richard Henderson
On 07/10/2015 05:03 PM, Aurelien Jarno wrote: Cc: Richard Henderson Signed-off-by: Aurelien Jarno --- tcg/optimize.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) Reviewed-by: Richard Henderson r~

[Qemu-devel] [PATCH 2/2] tcg/optimize: fix constant signedness

2015-07-10 Thread Aurelien Jarno
By convention, on a 64-bit host TCG internally stores 32-bit constants as sign-extended. This is not the case in the optimizer when a 32-bit constant is folded. This doesn't seem to have more consequences than suboptimal code generation. For instance the x86 backend assumes sign-extended constants