subw

Subtract the 32-bit values in xs2 from xs1, and store the sign-extended result in xd

Synopsis

subw xd, xs1, xs2

Encoding

Type: R

0671112141519202425310111011xd000xs1xs20100000
funct7: 0100000
funct3: 000
opcode: 0111011

RISC-V Instruction Encoder/Decoder

open subw in rvcodecjs

Availability