target/hppa: Fix unit carry conditions
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 25 Mar 2024 01:59:37 +0000 (15:59 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 27 Mar 2024 22:15:25 +0000 (12:15 -1000)
commit46bb3d467cbb5227db6d70d1835a0852cd3eafd2
tree92402182f52b3eb19e36f7f06b842be629fa8b40
parentababac165b375b617e5b333536b846a33c48006e
target/hppa: Fix unit carry conditions

Split do_unit_cond to do_unit_zero_cond to only handle conditions
versus zero.  These are the only ones that are legal for UXOR.
Simplify trans_uxor accordingly.

Rename do_unit to do_unit_addsub, since xor has been split.
Properly compute carry-out bits for add and subtract, mirroring
the code in do_add and do_sub.

Tested-by: Helge Deller <deller@gmx.de>
Reviewed-by: Helge Deller <deller@gmx.de>
Fixes: b2167459ae4 ("target-hppa: Implement basic arithmetic")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/translate.c