Skip to content

Commit

Permalink
Add assert false with not implemented.
Browse files Browse the repository at this point in the history
Signed-off-by: Pan Li <pan2.li@intel.com>
  • Loading branch information
Incarnation-p-lee authored and Alasdair committed Nov 15, 2024
1 parent 664c2cb commit bdc464f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/float/arith_internal.sail
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,19 @@ function float_add_internal (op_0, op_1) = {
then op_0 + sail_zero_extend (fp_1.mantissa, bitsize)
else if is_all_ones (fp_0.exp)
then op_0
else sail_zeros ('n);
else {
assert (false, "Not implemented yet.");
sail_zeros ('n);
};

(sum, fp_eflag_none);
}

val float_sub_internal : forall 'n, 'n in {16, 32, 64, 128}.
(bits('n), bits('n)) -> (bits('n), fp_exception_flags)
function float_sub_internal (op_0, op_1) = {
// ToDo(panli): Placeholder, will take care of it soon.
let diff = op_0;
(diff, fp_eflag_none);
assert (false, "Not implemented yet.");
(sail_zeros ('n), fp_eflag_none);
}

$endif

0 comments on commit bdc464f

Please sign in to comment.