JitArm64: Use ADDI2R for psq_lXX/psq_stXX immediate offsets
This simplifies the source code, and slightly improves the emitted code in some cases.
This commit is contained in:
parent
67791d227c
commit
b1987d0187
|
@ -58,10 +58,8 @@ void JitArm64::psq_lXX(UGeckoInstruction inst)
|
|||
{
|
||||
if (indexed)
|
||||
ADD(addr_reg, gpr.R(inst.RA), gpr.R(inst.RB));
|
||||
else if (offset >= 0)
|
||||
ADD(addr_reg, gpr.R(inst.RA), offset);
|
||||
else
|
||||
SUB(addr_reg, gpr.R(inst.RA), std::abs(offset));
|
||||
ADDI2R(addr_reg, gpr.R(inst.RA), offset, addr_reg);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -217,10 +215,8 @@ void JitArm64::psq_stXX(UGeckoInstruction inst)
|
|||
{
|
||||
if (indexed)
|
||||
ADD(addr_reg, gpr.R(inst.RA), gpr.R(inst.RB));
|
||||
else if (offset >= 0)
|
||||
ADD(addr_reg, gpr.R(inst.RA), offset);
|
||||
else
|
||||
SUB(addr_reg, gpr.R(inst.RA), std::abs(offset));
|
||||
ADDI2R(addr_reg, gpr.R(inst.RA), offset, addr_reg);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue