Rocket Chip Generator (https://github.com/freechipsproject/rocket-chip)
7eb73c325e
We were using the FMA unit to compute rs1 * rs2 + 0.0 for fmul, which incorrectly computes +0.0 when rs1 * rs2 == -0.0. Now we add -0.0 if rs1*rs2 is negative. |
||
---|---|---|
rocket/src/main/scala |