tcg/x86_64: Special-case all 32-bit AND operands.
authorRichard Henderson <rth@twiddle.net>
Wed, 6 Jan 2010 00:03:00 +0000 (16:03 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 14 Jan 2010 17:16:40 +0000 (18:16 +0100)
commit97c6ced2cae90e07794b81d5ae5ce92f0c1828a1
tree225bf78c92e97d0c7016f76f2ba54e42c3fc4171
parent35429cb354f5c1455a8db0a7e1c6fbb4874460f7
tcg/x86_64: Special-case all 32-bit AND operands.

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 <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/x86_64/tcg-target.c