diff --git a/doc/scalar/insns/sm4ed.adoc b/doc/scalar/insns/sm4ed.adoc index 01e20f92..5753114f 100644 --- a/doc/scalar/insns/sm4ed.adoc +++ b/doc/scalar/insns/sm4ed.adoc @@ -27,7 +27,7 @@ Implements a T-tables in hardware style approach to accelerating the SM4 round function. A byte is extracted from `rs2` based on `bs`, to which the SBox and linear layer transforms are applied, before the result is XOR'd with -`rt` and written back to `rd`. +`rs1` and written back to `rd`. This instruction exists on RV32 and RV64 base architectures. On RV64, the 32-bit result is sign extended upto XLEN bits. This instruction must _always_ be implemented such that it's execution diff --git a/doc/scalar/insns/sm4ks.adoc b/doc/scalar/insns/sm4ks.adoc index 81c10d60..cbb55697 100644 --- a/doc/scalar/insns/sm4ks.adoc +++ b/doc/scalar/insns/sm4ks.adoc @@ -27,7 +27,7 @@ Implements a T-tables in hardware style approach to accelerating the SM4 Key Schedule. A byte is extracted from `rs2` based on `bs`, to which the SBox and linear layer transforms are applied, before the result is XOR'd with -`rt` and written back to `rd`. +`rs1` and written back to `rd`. This instruction exists on RV32 and RV64 base architectures. On RV64, the 32-bit result is sign extended upto XLEN bits. This instruction must _always_ be implemented such that it's execution