Rev. 1.50, 10/04, page 369 of 448
10.3.3 FCMP (Floating-point Compare): Floating-Point Instruction
No. PR Format Operation Instruction Code Cycle T Bit
1. 0 FCMP/EQ FRm,FRn When FRn = FRm,1 → T
Otherwise, 0 → T
1111nnnnmmmm0100 1 1/0
2. 1 FCMP/EQ DRm,DRn When DRn = DRm,1 → T
Otherwise, 0 → T
1111nnn0mmm00100 1 1/0
3. 0
FCMP/GT FRm,FRn When FRn > FRm,1 → T
Otherwise, 0 → T
1111nnnnmmmm0101 1 1/0
4. 1
FCMP/GT DRm,DRn When DRn > DRm,1 → T
Otherwise, 0 → T
1111nnn0mmm00101 1 1/0
Description:
1. When FPSCR.PR = 0: Arithmetically compares the two single-precision floating-point
numbers in FRn and FRm, and stores 1 in the T bit if they are equal, or 0 otherwise.
2. When FPSCR.PR = 1: Arithmetically compares the two double-precision floating-point
numbers in DRn and DRm, and stores 1 in the T bit if they are equal, or 0 otherwise.
3. When FPSCR.PR = 0: Arithmetically compares the two single-precision floating-point
numbers in FRn and FRm, and stores 1 in the T bit if FRn > FRm, or 0 otherwise.
4. When FPSCR.PR = 1: Arithmetically compares the two double-precision floating-point
numbers in DRn and DRm, and stores 1 in the T bit if DRn > DRm, or 0 otherwise.
Notes: None