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
PPU interpreters: Implement AltiVec (vector) NaN precedence and data preservation #8218
Conversation
5cc7ff5
to
cba9f6a
Compare
Testcase : https://github.com/elad335/myps3tests/tree/master/ppu_tests/AltiVec%20NaN%20precedence |
Any review? |
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.
lgtm
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.
naruhodo
If any of the operands is a NaN of any kind it is 'quited' (MSB of fraction is set) and returned with the following ordering of selection between the NaNs: VA, VB, VC, result of operation.
The resulted NaN of operation is returned as a NaN if none of the arguments is a NaN.
Sign and fraction bits (other than NaN's signaling bit) are preserved across operands in all instructions.
It's not implemented at PPU LLVM atm.