EasyManuals Logo

Renesas SuperH SH-4A User Manual

Renesas SuperH SH-4A
472 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #389 background imageLoading...
Page #389 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas SuperH SH-4A and is the answer not in the manual?

Renesas SuperH SH-4A Specifications

General IconGeneral
BrandRenesas
ModelSuperH SH-4A
CategoryComputer Hardware
LanguageEnglish

Related product manuals