This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IOC flag at FPSCR register

I using Cortex-R4.

And I reading "Cortex™-R4 and Cortex-R4F Technical Reference Manual(Revision:r1p3)".

In my system,  IOC flag in FPSCR register is set with unexpected processing.

What is the condition of set IOC flag in FPSCR register?

Parents
  • I don't think rounding can cause invalid operation, the sorts of things that can cause it are

    infinity-infinity, 0/0, infinity/infinity, 0 x infinity

    conversions to integer from out of range

    getting the square root of a negative number

    the signalling comparisons with not a number,

    operations on signalling not a number

    and there's probably a few more. Software can also set it for things like the log of a negative number.

    IOC is cumulative so it stays set to 1 if a floating point invalid operation occurs until it is explicitly reset to zero.

Reply
  • I don't think rounding can cause invalid operation, the sorts of things that can cause it are

    infinity-infinity, 0/0, infinity/infinity, 0 x infinity

    conversions to integer from out of range

    getting the square root of a negative number

    the signalling comparisons with not a number,

    operations on signalling not a number

    and there's probably a few more. Software can also set it for things like the log of a negative number.

    IOC is cumulative so it stays set to 1 if a floating point invalid operation occurs until it is explicitly reset to zero.

Children