PPC/PS3: Fix BC_ADD*/BC_SUB*.

Thanks to MaryWan1982.
This commit is contained in:
Mike Pall 2021-05-29 15:33:08 +02:00
parent 0e53a314d7
commit c2cfa04231

View File

@ -3552,8 +3552,8 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
|.macro addo32., y, a, b
| // Need to check overflow for (a<<32) + (b<<32).
| rldicr TMP0, a, 32, 31
| rldicr TMP3, b, 32, 31
| addo. TMP0, TMP0, TMP3
| rldicr TMP1, b, 32, 31
| addo. TMP0, TMP0, TMP1
| add y, a, b
|.endmacro
| ins_arith addo32., fadd
@ -3566,8 +3566,8 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
|.macro subo32., y, a, b
| // Need to check overflow for (a<<32) - (b<<32).
| rldicr TMP0, a, 32, 31
| rldicr TMP3, b, 32, 31
| subo. TMP0, TMP0, TMP3
| rldicr TMP1, b, 32, 31
| subo. TMP0, TMP0, TMP1
| sub y, a, b
|.endmacro
| ins_arith subo32., fsub