mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-24 08:42:31 +00:00

I misread the implementation details of this instruction when implementing. The pseudocode says `ST(0) = ST(0) ∗ 2^rndint(ST(1))` so I understood the instruction to use the current rounding mode of the host to extract the integer portion of `ST(1)`. The actual implementation is in the details of the statement `the integer portion of the floating- point value in ST(1).` This behaves like round towards zero/truncate, additional hardware testing and documentation reading confirms this. Fixes #1584
8 lines
142 B
Plaintext
8 lines
142 B
Plaintext
# Relies on undefined behaviour
|
|
Test_32Bit_X87/D9_F9.asm
|
|
|
|
Test_32Bit_X87/D9_F2.asm
|
|
|
|
# Relies on rounding correctness
|
|
Test_32Bit_X87/D9_F8.asm
|