Floating-Point Rounding And Conversion Instmctions; Floating-Point Compare Instmctions - Motorola MPC750 User Manual

Risc
Hide thumbs Also See for MPC750:
Table of Contents

Advertisement

Table 2-28. Floating-Point Multiply-Add Instructions (Continued)
Name
Mnemonic
Syntax
Floating Multiply-Subtract (Double-Precision)
fmsub (fmsub.)
frD,frA,frC,frB
Floating Multiply-Subtract Single
fmsubs (fmsubs.)
frD,frA,frC,frB
Floating Negative Multiply-Add (Double-Precision)
fnmadd (fnmadd.)
frD,frA,frC,frB
Floating Negative Multiply-Add Single
fnmadds (fnmadds.)
frD,frA,frC,frB
Floating Negative Multiply-Subtract (Double-Precision)
fnmsub (fnmsub.)
frD,frA,frC,frB
Floating Negative Multiply-Subtract Single
fnmsubs (fnmsubs.)
frD,frA,frC,frB
2.3.4.2.3 Floating-Point Rounding and Conversion Instructions
The Floating Round to Single-Precision (frsp) instruction is used to truncate a 64-bit
double-precision number to a 32-bit single-precision floating-point number. The
floating-point convert instructions convert a 64-bit double-precision floating-point number
to a 32-bit signed integer number.
Examples of uses of these instructions to perform various conversions can be found in
Appendix D, "Floating-Point Models," in The Programming Environments Manual.
Table 2-29. Floating-Point Rounding and Conversion Instructions
Name
Mnemonic
Syntax
Floating Round to Single
frsp (frsp.)
frD,frB
Floating Convert to Integer Word
fctiw (fctiw.)
frD,frB
Floating Convert to Integer Word with Round toward Zero
fctiwz (fctiwz.)
frD,frB
2.3.4.2.4 Floating-Point Compare Instructions
Floating-point compare instructions compare the contents of two floating-point registers.
The comparison ignores the sign of zero (that is +0 = -0). The floating-point compare
instructions are summarized in Table 2-30.
Table 2-30. Floating-Point Compare Instructions
Name
Mnemonic
Syntax
Floating Compare Unordered
fcmpu
crfD,frA,frB
Floating Compare Ordered
fcmpo
crfD,frA,frB
Chapter 2. MPC750 Processor Programming Model
2-43

Advertisement

Table of Contents
loading

Table of Contents