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

Interpreter: fix NaN handling in FMA instructions #2381

Merged
merged 2 commits into from Jun 4, 2015

Conversation

Tilka
Copy link
Member

@Tilka Tilka commented May 9, 2015

Will eventually fix issue 8364. Removed the Jit64 stuff for now.

@Tilka
Copy link
Member Author

Tilka commented May 11, 2015

This seems like it could use a game-specific option (with the default being inaccurate NaNs). Thoughts?

@@ -84,7 +84,7 @@ inline double Force25Bit(double d)
// these functions allow globally modify operations behaviour
// also, these may be used to set flags like FR, FI, OX, UX

inline double NI_mul(const double a, const double b)
inline double NI_mul(double a, double b)

This comment was marked as off-topic.

This comment was marked as off-topic.

@FioraAeterna
Copy link
Contributor

I think a game-specific option for hyper-accurate floating point emulation could be appropriate. Not sure if we should split it up for maximum performance (NaNs, FPSCR, other things...?) or if we should just put it all in one.

@Tilka
Copy link
Member Author

Tilka commented May 15, 2015

Added an option "AccurateNaNs" which is on by default for easy testing. (The SSE2 path is still kind of neglected.)

Dropped the last commit because that one's obviously not done yet.

@Tilka Tilka changed the title [WIP] Jit64/Interpreter: fix NaN handling in FMA instructions Jit64/Interpreter: fix NaN handling in FMA instructions May 24, 2015
@Tilka Tilka changed the title Jit64/Interpreter: fix NaN handling in FMA instructions [WIP] Jit64/Interpreter: fix NaN handling in FMA instructions May 24, 2015
@JMC47
Copy link
Contributor

JMC47 commented May 31, 2015

Ping? Is this ready to merge?

@Tilka
Copy link
Member Author

Tilka commented May 31, 2015

No, and it probably shouldn't be merged for 5.0. (The FMA-unrelated commits have already been merged as part of other PRs.)

@Tilka Tilka changed the title [WIP] Jit64/Interpreter: fix NaN handling in FMA instructions Interpreter: fix NaN handling in FMA instructions Jun 3, 2015
@Tilka
Copy link
Member Author

Tilka commented Jun 3, 2015

I've dropped the Jit64 stuff for now, because that will still take a bit longer. This PR should be ready to review/merge.

comex added a commit that referenced this pull request Jun 4, 2015
Interpreter: fix NaN handling in FMA instructions
@comex comex merged commit e04a457 into dolphin-emu:master Jun 4, 2015
@Tilka Tilka deleted the fma branch June 4, 2015 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants