[BUG] Incorrect handling of NaN-boxed value for Single-Precision Floating-Point SQRT #2450
Open
1 task done
Labels
notCV32A65X
It is not an CV32A65X issue
PARAM:FPU
Issue depends on the FPU parameter
Type:Bug
For bugs in the RTL, Documentation, Verification environment or Tool and Build system
Is there an existing CVA6 bug for this?
Bug Description
Executing Single-Precision Floating-Point SQRT by an invalid NaN-boxed value (a value that most significant 32 bits are not set to 1) will result in boxed single precision floating point value
0xffffffff00000000
which is incorrect. Based on specification, the result should be a 32-bit canonical NaN.Reference: https://github.com/riscv/riscv-isa-manual/blob/main/src/d-st-ext.adoc#nan-boxing-of-narrower-values
Execute following instruction:
However, if you execute same code on Spike you will get
ft5=0xffffffff7fc00000
.The text was updated successfully, but these errors were encountered: