c.sub
Subtract
This instruction is defined by:
Synopsis
Subtract the value 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.SUB expands into sub rd, rd, rs2
.
Execution
-
Pruned, XLEN == 64
-
Original
XReg t0 = X[%%LINK%func;creg2reg;creg2reg%%(rd)];
XReg t1 = X[%%LINK%func;creg2reg;creg2reg%%(rs2)];
X[%%LINK%func;creg2reg;creg2reg%%(rd)] = t0 - t1;
XReg t0 = X[%%LINK%func;creg2reg;creg2reg%%(rd)];
XReg t1 = X[%%LINK%func;creg2reg;creg2reg%%(rs2)];
X[%%LINK%func;creg2reg;creg2reg%%(rd)] = t0 - t1;