mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
SPU: fix minor UB in STQD/LQD instructions
This commit is contained in:
parent
2b4da18709
commit
15bd3b8724
2 changed files with 4 additions and 4 deletions
|
@ -4359,7 +4359,7 @@ void spu_recompiler::AHI(spu_opcode_t op)
|
|||
void spu_recompiler::STQD(spu_opcode_t op)
|
||||
{
|
||||
c->mov(*addr, SPU_OFF_32(gpr, op.ra, &v128::_u32, 3));
|
||||
if (op.si10) c->add(*addr, op.si10 << 4);
|
||||
if (op.si10) c->add(*addr, op.si10 * 16);
|
||||
c->and_(*addr, 0x3fff0);
|
||||
|
||||
if (utils::has_ssse3())
|
||||
|
@ -4382,7 +4382,7 @@ void spu_recompiler::STQD(spu_opcode_t op)
|
|||
void spu_recompiler::LQD(spu_opcode_t op)
|
||||
{
|
||||
c->mov(*addr, SPU_OFF_32(gpr, op.ra, &v128::_u32, 3));
|
||||
if (op.si10) c->add(*addr, op.si10 << 4);
|
||||
if (op.si10) c->add(*addr, op.si10 * 16);
|
||||
c->and_(*addr, 0x3fff0);
|
||||
|
||||
if (utils::has_ssse3())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue