Commit c5e2d511 authored by Lauric Desauw's avatar Lauric Desauw
Browse files

FPUv3.1

Correcting an error on the v3 version
parent ecdad197
Pipeline #82875 canceled with stages
......@@ -124,7 +124,7 @@ public :
switch(dctoEx.funct7)
{
case RISCV_FLOAT_OP_ADD :
if(f1Exp != 0xff | f2Exp != 0xff) // operand are not exceptions
if(f1Exp != 0xff & f2Exp != 0xff) // operand are not exceptions
{
if(!subState)
......@@ -193,7 +193,7 @@ public :
break;
case RISCV_FLOAT_OP_SUB :
if(f1Exp != 0xff | f2Exp != 0xff) // float are not exceptions
if(f1Exp != 0xff & f2Exp != 0xff) // float are not exceptions
{
if(!subState)
{
......@@ -261,7 +261,7 @@ public :
break;
case RISCV_FLOAT_OP_DIV :
if(f1Exp != 0xff | f2Exp != 0xff) // float are not exceptions
if(f1Exp != 0xff & f2Exp != 0xff) // float are not exceptions
{
if(dctoEx.lhs)
{
......@@ -272,7 +272,9 @@ public :
stall = true;
}
else
{
DIV0 = 1;
}
}
else // one of the operand is an exception
{
......@@ -291,7 +293,7 @@ public :
break;
case RISCV_FLOAT_OP_MUL :
if(f1Exp != 0xff | f2Exp != 0xff) // float are not exceptions
if(f1Exp != 0xff & f2Exp != 0xff) // float are not exceptions
{
outputSign = f1Sign ^ f2Sign;
outputMantissa = f1Mantissa * f2Mantissa;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment