4.58 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
4.59 About trapping software floating-point division-by-zero errors
4.60 Identification of software floating-point division-by-zero errors
4.61 Software floating-point division-by-zero debugging
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.