mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 23:29:17 +00:00
Merge pull request #12088 from JosJuice/jitarm64-zero-fpr
JitArm64: Prefer MOVI with 64-bit elements for zeroing
This commit is contained in:
commit
54d3a226f3
2 changed files with 2 additions and 2 deletions
|
@ -832,7 +832,7 @@ void JitArm64::ConvertSingleToDoublePair(size_t guest_reg, ARM64Reg dest_reg, AR
|
||||||
{
|
{
|
||||||
// Set each 32-bit element of scratch_reg to 0x0000'0000 or 0xFFFF'FFFF depending on whether
|
// Set each 32-bit element of scratch_reg to 0x0000'0000 or 0xFFFF'FFFF depending on whether
|
||||||
// the absolute value of the corresponding element in src_reg compares greater than 0
|
// the absolute value of the corresponding element in src_reg compares greater than 0
|
||||||
m_float_emit.MOVI(8, EncodeRegToDouble(scratch_reg), 0);
|
m_float_emit.MOVI(64, EncodeRegToDouble(scratch_reg), 0);
|
||||||
m_float_emit.FACGT(32, EncodeRegToDouble(scratch_reg), EncodeRegToDouble(src_reg),
|
m_float_emit.FACGT(32, EncodeRegToDouble(scratch_reg), EncodeRegToDouble(src_reg),
|
||||||
EncodeRegToDouble(scratch_reg));
|
EncodeRegToDouble(scratch_reg));
|
||||||
|
|
||||||
|
|
|
@ -254,7 +254,7 @@ void JitArm64::ps_arith(UGeckoInstruction inst)
|
||||||
|
|
||||||
// Pick the right NaNs
|
// Pick the right NaNs
|
||||||
|
|
||||||
m_float_emit.MOVI(8, zero_reg, 0);
|
m_float_emit.MOVI(64, zero_reg, 0);
|
||||||
|
|
||||||
const auto check_input = [&](ARM64Reg input) {
|
const auto check_input = [&](ARM64Reg input) {
|
||||||
m_float_emit.FACGE(size, nan_temp_reg_paired, input, zero_reg);
|
m_float_emit.FACGE(size, nan_temp_reg_paired, input, zero_reg);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue