English
Language : 

SH7750_08 Datasheet, PDF (290/1162 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
Section 6 Floating-Point Unit (FPU)
Modifying Software
Problem types (1), (2), and (3): Deal with problem types (1), (2), and (3) in table 6.3 using
software based on the flowchart below.
Adjust the source operands by multiplying them by 2 , 1536 then calculate them as normalized
numbers.
In the case of problem type (1), if the Divide by Zero exception is enabled, the divide by zero
exception trap is generated and the destination register does not change. If the Divide by Zero
exception is disabled, the contents of the destination register become infinity with the sign based
on the input operands.
START
Save source DRn
FDIV DRm, DRn
Is operation result
Yes
±INF or ±0?
No
Problem type (1), (2), Yes
or (3)?
No
Restore source DRn
DRm × 21536, DRn × 21536
FDIV DRm, DRn
END
Problem type (7): In the case of problem type (7) in table 6.3, no FPU error occurs. The operation
result is correct and there is no need for a software workaround.
Rev.7.00 Oct. 10, 2008 Page 206 of 1074
REJ09B0366-0700