5.9.2 Arithmetic operation instructions

This section describes the arithmetic operation instructions. Next table lists the instructions described in this section.

See the RH850 product user's manual and architecture edition for details.

Table 5.27

Arithmetic Operation Instructions

Instruction

Meaning

add

Adds

addi

Adds (immediate)

adf

Adds with condition

sub

Subtracts

subr

Subtracts reverse

sbf

Subtracts with condition

mulh

Multiplies signed data (halfword)

mulhi

Multiplies signed data (halfword immediate)

mul

Multiplies signed data (word)

mulu

Multiplies unsigned data

mac

Multiplies and adds signed word data

macu

Multiplies and adds unsigned word data

divh

Divides signed data (halfword)

div

Divides signed data (word)

divhu

Divides unsigned data (halfword)

divu

Divides unsigned data (word)

divq

Division of (signed) word data (variable steps)

divqu

Division of (unsigned) word data (variable steps)

cmp

Compares

mov

Moves data

movea

Moves execution address

movhi

Moves higher half-word

mov32

Moves 32-bit data

cmov

Moves data depending on the flag condition

setf

Sets flag condition

sasf

Sets the flag condition after a logical left shift

bins

Insert bit in register

rotl

Rotate

 

See the device with an instruction set of RH850 product user's manual and architecture edition for details about the device with an instruction set of RH850.