Skip to content

Commit

Permalink
Reserve redundant SCBNDSI encodings (#418)
Browse files Browse the repository at this point in the history
These encodings could be used for larger values such as 512 in the
future.

See #402
  • Loading branch information
arichardson authored Oct 11, 2024
1 parent 972e8ff commit 685fff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/insns/scbnds_32bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ tag is 0 or `cs1` is sealed.
+
`immediate = ZeroExtend(s ? uimm<<4 : uimm)`
NOTE: The <<SCBNDSI>> encoding with `s=1` and `uimm ≤ 1` is RESERVED since these immediates can also be encoded with `s=0`.
include::malformed_clear_tag.adoc[]
Exceptions::
Expand Down
2 changes: 1 addition & 1 deletion src/insns/wavedrom/scbnds_32bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{bits: 5, name: 'cd', attr: ['5', 'dest'], type: 2},
{bits: 3, name: 'funct3', attr: ['3', 'SCBNDSI=101'], type: 8},
{bits: 5, name: 'cs1', attr: ['5', 'src'], type: 4},
{bits: 5, name: 'uimm', attr: ['5', 'uimm'], type: 3},
{bits: 5, name: 'uimm', attr: ['5', 'uimm', '(> 1 if s=1)'], type: 3},
{bits: 1, name: 's', attr: ['1', 'scaled'], type: 3},
{bits: 6, name: 'funct6', attr: ['6', 'SCBNDSI','=000001'], type: 3},
]}
Expand Down

0 comments on commit 685fff1

Please sign in to comment.