[libre-riscv-dev] [Bug 117] RISCV FCLASS instruction needed

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Fri Jul 26 22:51:55 BST 2019


http://bugs.libre-riscv.org/show_bug.cgi?id=117

Jacob Lifshay <programmerjake at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |programmerjake at gmail.com

--- Comment #1 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #0)
> FCLASS detects a "boxed" number type (must include FP16).

no it doesn't, it just treats it as a NaN. if a fp register holds a boxed f32,
fclass.d returns that it's a quiet nan, since the exponent is all ones, the
mantissa is non-zero and the quiet bit is set (msb of mantissa).

boxed fp32: 0xFFFF_FFFF_XXXX_XXXX
exponent field: 0x7FF0_0000_0000_0000
quiet bit: 0x0008_0000_0000_0000

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-riscv-dev mailing list