1.2.1. ADD (Add Registers)

Add one register (rs1) to another (rs2) and store the result it in a 3rd destination register (rd)

Note: Arithmetic overflow is ignored.

Formula \(x[rd] \leftarrow x[r_1] + x[r_2]\)

ADD rs, r1, r2
..table::

1.2.1.1. Compressed Forms

1.2.1.1.1. c.add rd, rs2

1.2.1.1.2. x.mv rd, rs2

INST TYPE

31 - 25

24 - 20

19 - 15

14 - 12

11 - 07

06 - 00

R-TYPE

0000000

rs2

rs1

000

rd

0110011