-
Notifications
You must be signed in to change notification settings - Fork 125
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
Fix FScale'ing zero that should return zero #4085
Conversation
This pcem issue sarah-walker-pcem/pcem@2e037b5#diff-56c35b563dbfc08142a6ac0ee8bd3c626b5556065b41f39732fdb3625982064cR677 made me look into this in FEX. The table in https://www.felixcloutier.com/x86/fscale clearly shows that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
Had a thought, does this return the correct sign of zero? |
Good point! It doesn't. I assumed it didn't matter. I am still unsure how it deals with the exceptional cases of st1 being +inf or Nan, which return NaN, or when st1 is -inf, in which case it returns -/+ 0. There's an odd asymmetry here. Unfortunately, I cannot run MDK2 yet. |
It does now! :) |
ugh - clearly something is not working 100%. |
I am slightly dumbfounded that after much searching, the crashes were due to an include of |
Added tests will fail without the current patch. This will properly check if we return the correct sign of zero.
Added tests will fail without the current patch.