summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Random.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-05-26 19:18:18 -0400
committerLioncash <mathew1800@gmail.com>2018-05-28 14:05:08 -0400
commit8c4aa133ca2aac4e45e7d03add5288925b11e849 (patch)
treed903577105aebf00eeb7e6cd82da2675e72f7da0 /Source/Core/Common/Random.cpp
parent0125d9b0999834dc2de4e526fe9823722a00877a (diff)
Interpreter_FloatingPoint: Handle NaN flag setting within fctiw and fctiwz
If a NaN of any type is passed as the operand to either of these instructions, we shouldn't go down the regular code path, as we end up potentially setting the wrong flags. For example, we wouldn't set the FPSCR.VXCVI bit properly. We'd also set FPSCR.FI, when in actuality it should be unset. If an SNaN is passed as an operand, we also need to set the FPSCR.VXSNAN bit as well. The flag setting behavior for these can be found in Appendix C.4.2 in PowerPC Microprocessor Family: The Programming Environments Manual for 32 and 64-bit Microprocessors.
Diffstat (limited to 'Source/Core/Common/Random.cpp')
0 files changed, 0 insertions, 0 deletions