mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
JitArm64: Minor mtfsfix optimization
BFI takes two cycles on many CPUs, whereas AND (immediate) only takes one.
This commit is contained in:
parent
637ae12ff4
commit
4ac52cf053
1 changed files with 2 additions and 1 deletions
|
@ -896,7 +896,8 @@ void JitArm64::mtfsfix(UGeckoInstruction inst)
|
||||||
}
|
}
|
||||||
else if (imm == 0x0)
|
else if (imm == 0x0)
|
||||||
{
|
{
|
||||||
BFI(WA, ARM64Reg::WZR, shift, 4);
|
const u32 inverted_mask = ~mask;
|
||||||
|
AND(WA, WA, LogicalImm(inverted_mask, GPRSize::B32));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue