EasyManua.ls Logo

Renesas SuperH SH-4A - FCMP (Floating-Point Compare): Floating-Point Instruction

Renesas SuperH SH-4A
472 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals