addw

Add the 32-bit values in xs1 to xs2, and store the sign-extended result in xd. Any overflow is thrown away.

Synopsis

addw xd, xs1, xs2

Encoding

Type: R

0671112141519202425310111011xd000xs1xs20000000
funct7: 0000000
funct3: 000
opcode: 0111011

RISC-V Instruction Encoder/Decoder

open addw in rvcodecjs

Availability