mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
PPC/PS3: Fix BC_ADD*/BC_SUB*.
Thanks to MaryWan1982.
This commit is contained in:
parent
0e53a314d7
commit
c2cfa04231
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user