Encoding:

POOL32F

010101

ft

fs

fd

0

fmt

DIV

11110000

6

5

5

5

1

2

8

Format:

DIV.fmt 

Floating Point Divide

DIV.S fd, fs, ft

microMIPS

Floating Point Divide

DIV.D fd, fs, ft

microMIPS

Floating Point Divide

Purpose:

Floating Point Divide

To divide FP values.

Description:

 FPR[fd] = FPR[fs] / FPR[ft]

The value in FPR fs is divided by the value in FPR ft. The result is calculated to infinite precision, rounded according to the current rounding mode in FCSR, and placed into FPR fd. The operands and result are values in format fmt.

Restrictions:

The fields fs, ft, and fd must specify FPRs valid for operands of type fmt. If the fields are not valid, the result is

UNPREDICABLE.

The operands must be values in format fmt; if they are not, the result is UNPREDICTABLE and the value of the operand FPRs becomes UNPREDICTABLE.

Operation:

StoreFPR (fd, fmt, ValueFPR(fs, fmt) / ValueFPR(ft, fmt))

Exceptions:

Coprocessor Unusable, Reserved Instruction

Floating Point Exceptions:

Inexact, Invalid Operation, Unimplemented Operation, Division-by-zero, Overflow, Underflow