-Xcheck_div_ov


This option checks the OV flag at division.

[Specification format]

-Xcheck_div_ov=num

 

-

Interpretation when omitted

Code that does not check the OV flag at division is generated.

[Detailed description]

-

This option generates code (fetrap instruction) that checks the OV flag after division instructions and generate an FE level software exception when the OV flag is 1.

-

The value that can be specified for num is 1 to 15 (a value that can be specified for the operand of the fetrap instruction).
An error will occur if any other item is specified.

-

An error will occur if num is omitted.

[Example of use]

-

To check the OV flag at division, describe as:

>ccrh -Xcheck_div_ov=1 -Xcommon=rh850 main.c