[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 07/35] tcg: Optionally sign-extend 32-bit argume
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 07/35] tcg: Optionally sign-extend 32-bit arguments for 64-bit host. |
Date: |
Thu, 10 Jun 2010 15:08:07 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Thunderbird/3.0.4 |
On 06/10/2010 03:22 AM, Aurelien Jarno wrote:
> Wouldn't it be better to actually pass the whole flag to
> tcg_gen_helper32(), so that we can in the future also support mixed
> signedness in arguments? Also doing it here looks like a bit like a
> magic constant.
I suppose that's possible.
> This part allocates a lot of temp variables, that will probably generate
> a lot of register spills during the code generation.
>
> As we do that for all arguments anyway, wouldn't it be possible to do
> the extension in place? The value in the register is changed, but that
> should not have any effect as it is ignored anyway in other
> instructions.
That hadn't occurred to me. I'll give it a try.
r~
- Re: [Qemu-devel] [PATCH 05/35] tcg-s390: Icache flush is a no-op., (continued)
[Qemu-devel] [PATCH 04/35] tcg-s390: Compute is_write in cpu_signal_handler., Richard Henderson, 2010/06/04
[Qemu-devel] [PATCH 06/35] tcg-s390: Allocate the code_gen_buffer near the main program., Richard Henderson, 2010/06/04
[Qemu-devel] [PATCH 07/35] tcg: Optionally sign-extend 32-bit arguments for 64-bit host., Richard Henderson, 2010/06/04
[Qemu-devel] [PATCH 08/35] s390: Update disassembler to the last GPLv2 from binutils., Richard Henderson, 2010/06/04
[Qemu-devel] [PATCH 09/35] s390: Disassemble some general-instruction-extension insns., Richard Henderson, 2010/06/04
[Qemu-devel] [PATCH 11/35] tcg-s390: Tidy unimplemented opcodes., Richard Henderson, 2010/06/04
[Qemu-devel] [PATCH 10/35] tcg-s390: New TCG target, Richard Henderson, 2010/06/04
[Qemu-devel] [PATCH 12/35] tcg-s390: Define TCG_TMP0., Richard Henderson, 2010/06/04