diff options
-rw-r--r-- | src/c.tex | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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}. |