Encoding:

COP1

010001

fmt

ft

fs

fd

DIV

000011

6

5

5

5

5

6

Format:

DIV.fmt 

Floating Point Divide

DIV.S fd, fs, ft

MIPS32

Floating Point Divide

DIV.D fd, fs, ft

MIPS32

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