target-sparc: Simplify ICC generation.
commit5a4bb580cdb10b066f9fd67658b31cac4a4ea5e5
authorRichard Henderson <rth@twiddle.net>
Wed, 12 May 2010 18:04:26 +0000 (12 11:04 -0700)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 19 May 2010 19:04:21 +0000 (19 19:04 +0000)
tree23b7d278c18b7aa8b48753c39520ae77d681dc38
parent4c1a0d8244116e4658b24858808c25c11bdf506a
target-sparc: Simplify ICC generation.

Use int32 types instead of target_ulong when computing ICC.  This
simplifies the generated code for 32-bit host and 64-bit guest.
Use the same simplified expressions for ICC as were already used
for XCC in carry flag generation.

Simplify the ADD carry generation to not consider a possible carry-in.
Use the more complex carry computation for ADDX only.  Use the same
carry algorithm for the XCC result of ADDX.  Similarly for SUB/SUBX.

Use the ADD carry generation functions for TADD/TADDTV.  Similarly
for SUB and TSUB/TSUBTV.

Tidy the code with respect to CODING_STYLE.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/op_helper.c