Appendix B
B-10 MIPS R4000 Microprocessor User's Manual
Table B-5 Floating-Point Instructions and Operations
Code
(5: 0)
Mnemonic Operation
0 ADD Add
1 SUB Subtract
2 MUL Multiply
3 DIV Divide
4 SQRT Square root
5 ABS Absolute value
6 MOV Move
7 NEG Negate
8 ROUND.L
Convert to 64-bit (long) fixed-point, rounded to nearest/
even
9 TRUNC.L Convert to 64-bit (long) fixed-point, rounded toward zero
10 CEIL.L Convert to 64-bit (long) fixed-point, rounded to +∞
11 FLOOR.L Convert to 64-bit (long) fixed-point, rounded to -∞
12 ROUND.W Convert to single fixed-point, rounded to nearest/even
13 TRUNC.W Convert to single fixed-point, rounded toward zero
14 CEIL.W Convert to single fixed-point, rounded to + ∞
15 FLOOR.W Convert to single fixed-point, rounded to – ∞
16–31 – Reserved
32 CVT.S Convert to single floating-point
33 CVT.D Convert to double floating-point
34 – Reserved
35 – Reserved
36 CVT.W Convert to 32-bit binary fixed-point
37 CVT.L Convert to 64-bit (long) binary fixed-point
38–47 – Reserved
48–63 C Floating-point compare