5.55 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.
Non-ConfidentialPDF file icon PDF versionARM DUI0472M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.