c.addw
Add word
This instruction is defined by:
Synopsis
Add the 32-bit values in rs2 from rd, and store the result in rd.
The rd and rs2 register indexes should be used as rd+8 and rs2+8 (registers x8-x15).
C.ADDW expands into addw rd, rd, rs2
.
Execution
-
Pruned, XLEN == 64
-
Original
Bits<32> t0 = X[%%LINK%func;creg2reg;creg2reg%%(rd)][31:0];
Bits<32> t1 = X[%%LINK%func;creg2reg;creg2reg%%(rs2)][31:0];
X[%%LINK%func;creg2reg;creg2reg%%(rd)] = $signed(t0 + t1);
Bits<32> t0 = X[%%LINK%func;creg2reg;creg2reg%%(rd)][31:0];
Bits<32> t1 = X[%%LINK%func;creg2reg;creg2reg%%(rs2)][31:0];
X[%%LINK%func;creg2reg;creg2reg%%(rd)] = $signed(t0 + t1);