aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/c.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c.tex b/src/c.tex
index 78eb361..066c5ef 100644
--- a/src/c.tex
+++ b/src/c.tex
@@ -968,6 +968,13 @@ These instructions use the CR format.
C.MV copies the value in register {\em rs2} into register {\em rd}. C.MV
expands into {\tt add rd, x0, rs2}.
+\begin{commentary}
+C.MV expands to a different instruction than the canonical MV
+pseudoinstruction, which instead uses ADDI. Implementations that handle MV
+specially, e.g. using register-renaming hardware, may find it more convenient
+to expand C.MV to MV instead of ADD, at slight additional hardware cost.
+\end{commentary}
+
C.ADD adds the values in registers {\em rd} and {\em rs2} and writes the
result to register {\em rd}. C.ADD expands into {\tt add rd, rd, rs2}.