Skip to content

Commit

Permalink
spec: encoding rationale typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-marshall committed Nov 30, 2020
1 parent ef0a521 commit 1c81684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tex/appx-scalar-encodings.tex
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ \subsection{Decoding Strategy}
All encodings taken up by {\tt sha512*} instructions on RV32 and
free for use by other instructions on RV64.

Bit $28$ distinguishes between hash function instructions and block
Bit $29$ distinguishes between hash function instructions and block
cipher instructions.
Bit $25$ distinguishes between SM4 and AES Block ciphers.
These bits were chosen arbitrarily.
Expand All @@ -141,7 +141,7 @@ \subsection{Decoding Strategy}
As single-source-register instructions,
\mnemonic{aes64ks1i} and \mnemonic{aes64im}
live in the {\tt OP-IMM} major opcode, adjacent to the hash function
instructions but distinguished by bit $29$.
instructions but distinguished from them by bit $29$.

For the SM4 and RV32 AES instructions, we require that {\tt rs1=rd}.
Encodings where {\tt rs1!=rd} raise an Illegal Opcode Exception unless
Expand Down

0 comments on commit 1c81684

Please sign in to comment.