5.59 Software floating-point division-by-zero errors in C code

Floating-point division-by-zero errors in software can be trapped and identified using a combination of intrinsics and C library helper functions.

Specifically:

  • The __ieee_status intrinsic lets you trap floating-point division-by-zero errors.
  • Placing a breakpoint on _fp_trapveneer() lets you identify software floating-point division-by-zero errors.
  • Intercepting _fp_trapveneer() using the $Super$$ and $Sub$$ mechanism lets you save parameters for debugging.
Related concepts
5.60 About trapping software floating-point division-by-zero errors
5.61 Identification of software floating-point division-by-zero errors
5.62 Software floating-point division-by-zero debugging
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.