mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
arm64jit: When rouding unset, use nearest.
The 0/default rounding mode is nearest, not toward zero. We set hasSetRounding only when fcr31 has a non-zero rounding mode or flush to zero set.
This commit is contained in:
parent
f229573bb2
commit
c3db3d5187
2 changed files with 2 additions and 2 deletions
|
@ -312,7 +312,7 @@ void Arm64Jit::GenerateFixedCode(const JitOptions &jo) {
|
|||
|
||||
// Leave this at the end, add more stuff above.
|
||||
if (enableDisasm) {
|
||||
std::vector<std::string> lines = DisassembleArm64(start, GetCodePtr() - start);
|
||||
std::vector<std::string> lines = DisassembleArm64(start, (int)(GetCodePtr() - start));
|
||||
for (auto s : lines) {
|
||||
INFO_LOG(JIT, "%s", s.c_str());
|
||||
}
|
||||
|
|
|
@ -292,7 +292,7 @@ void Arm64Jit::Comp_FPU2op(MIPSOpcode op) {
|
|||
fp.FMOV(fpr.R(fd), S0);
|
||||
} else {
|
||||
fp.FCMP(fpr.R(fs), fpr.R(fs));
|
||||
fp.FCVTS(fpr.R(fd), fpr.R(fs), ROUND_Z);
|
||||
fp.FCVTS(fpr.R(fd), fpr.R(fs), ROUND_N);
|
||||
FixupBranch skip_nan = B(CC_VC);
|
||||
MOVI2R(SCRATCH1, 0x7FFFFFFF);
|
||||
fp.FMOV(fpr.R(fd), SCRATCH1);
|
||||
|
|
Loading…
Add table
Reference in a new issue