3
3-40
M32R-FPU Software Manual (Rev.1.01)
INSTRUCTIONS
3.2 Instruction description
FCMPE
FCMPE
src1
1101
src2
0000
dest
0000
0000
1101
FCMPE Rdest,Rsrc1,Rsrc2
[Mnemonic]
FCMPE Rdest,Rsrc1,Rsrc2
[Function]
Floating-point compare
Rdest = (comparison results of Rsrc1 and Rsrc2);
When at least one value, either Rsrc1 or Rsrc2, is QNaN or SNaN, a floating-point exception
(other than Invalid Operation Exception) occurs.
[Description]
Compare the floating-point single precision values stored in Rsrc1 and Rsrc2 and store the
result in Rdest. The results of the comparison can be determined y the following methods.
Note: Only when EV bit (b21 of FPSR Register) = “0”.
The DN bit of FPSR handles the conversion of denormalized numbers. The condition bit (C)
remains unchanged.
[EIT occurrence]
Floating-Point Exceptions (FPE)
• Unimplemented Operation Exception (UIPL)
• Invalid Operation Exception (IVLD)
[Encoding]
floating-point Instructions
Floating-point compare with exception
if unordered
[M32R-FPU Extended Instruction]
Rdest
Comparison Results
Typical instructions used to
determine comparison results
b0=0
All bits, b1 to b31, are 0.
Rsrc1=Rsrc2
beqz Rdest, LABEL
bgtz Rdest, LABEL
bltz Rdest, LABEL
Rsrc1>Rsrc2
Rsrc1<Rsrc2
Comparison invalid
Bits b1 to b31 are an undefined.
All others
b1 to b9=111 1111 11,
Bits b10 to b31 are an undefined.
(Note)
b0=1
Содержание M32R-FPU
Страница 8: ...M32R FPU Software Manual Rev 1 01 This page left blank intentionally...
Страница 25: ...CHAPTER 2 INSTRUCTION SET 2 1 Instruction set overview 2 2 Instruction format...
Страница 39: ...CHAPTER 3 INSTRUCTIONS 3 1 Conventions for instruction description 3 2 Instruction description...
Страница 189: ...INDEX...
Страница 194: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M32R FPU REJ09B0112 0101Z Software Manual...