tcg: Optimize half-dead add2/sub2
authorRichard Henderson <rth@twiddle.net>
Tue, 2 Oct 2012 18:32:29 +0000 (11:32 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 17 Oct 2012 15:51:37 +0000 (17:51 +0200)
commit1305c451e67e3def030720013415103f5e0f5e11
treeac3f3a855f82c2a844f5c1b15308dad6a7cc51d3
parent212c328d615f6750659d39c6fd544d05be314fa1
tcg: Optimize half-dead add2/sub2

When x86_64 guest is not in 64-bit mode, the high-part of the 64-bit
add is dead.  When the host is 32-bit, we can simplify to 32-bit
arithmetic.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/tcg.c