mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-08 15:20:45 +01:00
JitArm64: Optimize ps_sel with d == b || d == c
This commit is contained in:
parent
93c9424d09
commit
e3bfff5cb6
@ -7,6 +7,7 @@
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/Config/Config.h"
|
||||
#include "Common/StringUtil.h"
|
||||
#include "Common/Unreachable.h"
|
||||
|
||||
#include "Core/Config/SessionSettings.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
@ -337,8 +338,12 @@ void JitArm64::ps_sel(UGeckoInstruction inst)
|
||||
const auto V0Q = fpr.GetScopedReg();
|
||||
const ARM64Reg V0 = reg_encoder(V0Q);
|
||||
m_float_emit.FCMGE(size, V0, VA);
|
||||
m_float_emit.BSL(V0, VC, VB);
|
||||
m_float_emit.MOV(VD, V0);
|
||||
if (d == b)
|
||||
m_float_emit.BIT(VD, VC, V0);
|
||||
else if (d == c)
|
||||
m_float_emit.BIF(VD, VB, V0);
|
||||
else
|
||||
Common::Unreachable();
|
||||
}
|
||||
|
||||
ASSERT_MSG(DYNA_REC, singles == (fpr.IsSingle(a) && fpr.IsSingle(b) && fpr.IsSingle(c)),
|
||||
|
Loading…
Reference in New Issue
Block a user