Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jit64: Fix fmaddXX with accurate NaNs #9970

Merged
merged 1 commit into from Jul 29, 2021

Conversation

JosJuice
Copy link
Member

So it turns out you have to pass XMM0 as the clobber register to HandleNaNs, because HandleNaNs uses BLENDVPD and BLENDVPD implicitly uses XMM0, and nobody noticed when I broke this in 2c38d64 because nobody plays the one game that needs accurate NaNs.

So it turns out you have to pass XMM0 as the clobber register
to HandleNaNs, because HandleNaNs uses BLENDVPD and BLENDVPD
implicitly uses XMM0, and nobody noticed when I broke this in
2c38d64 because nobody plays the one game that needs accurate NaNs.
@iwubcode
Copy link
Contributor

Which game needs this behavior? Could that be put into the commit message and/or as a comment?

@JosJuice
Copy link
Member Author

It is Dragon Ball: Revenge of King Piccolo. This is mentioned in a comment in the implementation of HandleNaNs.

@JMC47
Copy link
Contributor

JMC47 commented Jul 28, 2021

This fixes accurate NaNs when enabled.

@lioncash lioncash merged commit 28ee0af into dolphin-emu:master Jul 29, 2021
11 checks passed
@JosJuice JosJuice deleted the jit64-fmaddxx-accurate-nan branch July 29, 2021 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants