target-ppc: Fix narrow-mode add/sub carry output
commit752d634ecc74c76eb5e32db0e536d84c2d6aa3d8
authorRichard Henderson <rth@twiddle.net>
Wed, 3 Apr 2013 10:56:45 +0000 (3 10:56 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 21:02:40 +0000 (26 23:02 +0200)
tree7110476ce5e2a8e1ddf09ca0cbf04c8b46200139
parent2bc173224adc0fc318f2bd6fcf65dfdbc7d51123
target-ppc: Fix narrow-mode add/sub carry output

Broken in b5a73f8d8a57e940f9bbeb399a9e47897522ee9a, the carry itself was
fixed in 79482e5ab38a05ca8869040b0d8b8f451f16ff62.  But we still need to
produce the full 64-bit addition.

Simplify the conditions at the top of the functions for when we need a
new temporary.  Only plain addition is important enough to warrent avoiding
the temporary, and the extra tcg move op that would come with it.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c