Skip to content

Commit

Permalink
Update model/riscv_fdext_regs.sail
Browse files Browse the repository at this point in the history
Co-authored-by: Jessica Clarke <[email protected]>
Signed-off-by: Tim Hutt <[email protected]>
  • Loading branch information
Timmmm and jrtc27 authored Nov 1, 2024
1 parent cb4e1a1 commit e204f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/riscv_fdext_regs.sail
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function canonical_NaN_Q() -> bits(128) = canonical_NaN(128)
val nan_box : forall 'n 'm, 'n <= 'm . (implicit('m), bits('n)) -> bits('m)
function nan_box(n, x) = ones('m - 'n) @ x

// When an n-bit float is stored ina smaller m-bit register it is "unboxed"
// When an n-bit float is stored in a smaller m-bit register it is "unboxed"
// - only if it is a valid boxed NaN. Otherwise a canonical NaN value is stored.
// TODO: Use right-open interval when available. See https://github.com/rems-project/sail/issues/471
val nan_unbox : forall 'n 'm, 'm in {16, 32, 64, 128} & 'n >= 'm . (implicit('m), bits('n)) -> bits('m)
Expand Down

0 comments on commit e204f5e

Please sign in to comment.