« Previous | Next » 

Revision 09d9487f

ID09d9487fbb5c17226762e73c2b7d84170f5bd092

Added by Peter Maydell over 13 years ago

ARM: Return correct result for float-to-integer conversion of NaN

The ARM architecture mandates that converting a NaN value to
integer gives zero (if Invalid Operation FP exceptions are
not being trapped). This isn't the behaviour of the SoftFloat
library, so NaNs must be special-cased.

Signed-off-by: Peter Maydell <>
Reviewed-by: Nathan Froyd <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences