5.9.10 Floating-point operation instructions

Next table lists the floating-point operation instructions.

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

Table 5.44

Floating-point Operation Instructions (Basic Operation Instructions)

Instruction

Meanings

absf.d

Floating-point absolute value (double precision)

absf.s

Floating-point absolute value (single precision)

addf.d

Floating-point add (double precision)

addf.s

Floating-point add (single precision)

divf.d

Floating-point division (double precision)

divf.s

Floating-point division (single precision)

maxf.d

Floating-point maximum value (double precision)

maxf.s

Floating-point maximum value (single precision)

minf.d

Floating-point minimum value (double precision)

minf.s

Floating-point minimum value (single precision)

mulf.d

Floating-point multiplication (double precision)

mulf.s

Floating-point multiplication (single precision)

negf.d

Floating-point sign inversion (double precision)

negf.s

Floating-point sign inversion (single precision)

recipf.d

Reciprocal (double precision)

recipf.s

Reciprocal (single precision)

rsqrtf.d

Reciprocal of square root (double precision)

rsqrtf.s

Reciprocal of square root (single precision)

sqrtf.d

Square root (double precision)

sqrtf.s

Square root (single precision)

subf.d

Floating-point subtraction (double precision)

subf.s

Floating-point subtraction (single precision)

Table 5.45

Floating-point Operation Instructions (Exchange Instructions)

Instruction

Meanings

ceilf.dl

Conversion to fixed-point format (double precision)

ceilf.dw

Conversion to fixed-point format (double precision)

ceilf.dul

Conversion to unsigned fixed-point format (double precision)

ceilf.duw

Conversion to unsigned fixed-point format (double precision)

ceilf.sl

Conversion to fixed-point format (single precision)

ceilf.sw

Conversion to fixed-point format (single precision)

ceilf.sul

Conversion to unsigned fixed-point format (single precision)

ceilf.suw

Conversion to unsigned fixed-point format (single precision)

cvtf.dl

Conversion to fixed-point format (double precision)

cvtf.ds

Conversion to floating-point format (double precision)

cvtf.dul

Conversion to unsigned fixed-point format (double precision)

cvtf.duw

Conversion to unsigned fixed-point format (double precision)

cvtf.dw

Conversion to fixed-point format (double precision)

cvtf.ld

Conversion to floating-point format (double precision)

cvtf.ls

Conversion to floating-point format (single precision)

cvtf.sd

Conversion to floating-point format (double precision)

cvtf.sl

Conversion to fixed-point format (single precision)

cvtf.sul

Conversion to unsigned fixed-point format (single precision)

cvtf.suw

Conversion to unsigned fixed-point format (single precision)

cvtf.sw

Conversion to fixed-point format (single precision)

cvtf.uld

Conversion to floating-point format (double precision)

cvtf.uls

Conversion to floating-point format (single precision)

cvtf.uwd

Conversion to floating-point format (double precision)

cvtf.uws

Conversion to floating-point format (single precision)

cvtf.wd

Conversion to floating-point format (double precision)

cvtf.ws

Conversion to floating-point format (single precision)

floorf.dl

Conversion to fixed-point format (double precision)

floorf.dw

Conversion to fixed-point format (double precision)

floorf.dul

Conversion to unsigned fixed-point format (double precision)

floorf.duw

Conversion to unsigned fixed-point format (double precision)

floorf.sl

Conversion to fixed-point format (single precision)

floorf.sw

Conversion to fixed-point format (single precision)

floorf.sul

Conversion to unsigned fixed-point format (single precision)

floorf.suw

Conversion to unsigned fixed-point format (single precision)

trncf.dl

Conversion to fixed-point format (double precision)

trncf.dul

Conversion to unsigned fixed-point format (double precision)

trncf.duw

Conversion to unsigned fixed-point format (double precision)

trncf.dw

Conversion to fixed-point format (double precision)

trncf.sl

Conversion to fixed-point format (single precision)

trncf.sul

Conversion to unsigned fixed-point format (single precision)

trncf.suw

Conversion to unsigned fixed-point format (single precision)

trncf.sw

Conversion to fixed-point format (single precision)

Table 5.46

Floating-point Operation Instructions (Compare Instructions)

Instruction

Meanings

cmpf.d

Floating-point compare (double)

cmpf.s

Floating-point compare (single)

Table 5.47

Floating-point Operation Instructions (Conditional Move Instructions)

Instruction

Meanings

cmovf.d

Conditional move (double precision)

cmovf.s

Conditional move (single precision)

Table 5.48

Floating-point Operation Instructions (Conditional Bit Move Instructions)

Instruction

Meanings

trfsr

Flag transfer