Re: [Qemu-devel] [PATCH 1/2] tcg-x86_64: Special-case all 32-bit AND operands.

2010-01-14 Thread Aurelien Jarno
On Thu, Jan 14, 2010 at 08:05:58AM -0800, Richard Henderson wrote: > On 01/14/2010 07:57 AM, Aurelien Jarno wrote: > >On Tue, Jan 05, 2010 at 04:03:00PM -0800, Richard Henderson wrote: > >>This avoids an unnecessary REX.W prefix when dealing with AND > >>operands that fit into a 32-bit quantity. T

Re: [Qemu-devel] [PATCH 1/2] tcg-x86_64: Special-case all 32-bit AND operands.

2010-01-14 Thread Richard Henderson
On 01/14/2010 07:57 AM, Aurelien Jarno wrote: On Tue, Jan 05, 2010 at 04:03:00PM -0800, Richard Henderson wrote: This avoids an unnecessary REX.W prefix when dealing with AND operands that fit into a 32-bit quantity. The most common change actually seen is movz[wb]q -> movz[wb]l. Similarly, a

Re: [Qemu-devel] [PATCH 1/2] tcg-x86_64: Special-case all 32-bit AND operands.

2010-01-14 Thread Aurelien Jarno
On Tue, Jan 05, 2010 at 04:03:00PM -0800, Richard Henderson wrote: > This avoids an unnecessary REX.W prefix when dealing with AND > operands that fit into a 32-bit quantity. The most common change > actually seen is movz[wb]q -> movz[wb]l. > > Similarly, avoid REXW in ext{8,16}u_i64 tcg opcodes.

[Qemu-devel] [PATCH 1/2] tcg-x86_64: Special-case all 32-bit AND operands.

2010-01-05 Thread Richard Henderson
This avoids an unnecessary REX.W prefix when dealing with AND operands that fit into a 32-bit quantity. The most common change actually seen is movz[wb]q -> movz[wb]l. Similarly, avoid REXW in ext{8,16}u_i64 tcg opcodes. Signed-off-by: Richard Henderson --- tcg/x86_64/tcg-target.c | 26 +