i386: Use generic division to generate INVALID and DIVZERO exceptions
authorUros Bizjak <ubizjak@gmail.com>
Fri, 1 May 2020 17:20:57 +0000 (19:20 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Fri, 1 May 2020 17:20:57 +0000 (19:20 +0200)
commitafb9b7108104a73e8ac7a9b8e6875870e5ca4bbb
tree07fa9ec4b94921a6b90d301357f4eb4ef50a06a3
parentd730fd95eebaecad8e26f9e089c7df4630e94f1c
i386: Use generic division to generate INVALID and DIVZERO exceptions

Introduce math_force_eval to evaluate generic division to generate
INVALID and DIVZERO exceptions.

libgcc/ChangeLog:

* config/i386/sfp-exceptions.c (__math_force_eval): New define.
(__sfp_handle_exceptions): Use __math_force_eval to evaluete
generic division to generate INVALID and DIVZERO exceptions.

libatomic/ChangeLog:

* config/x86/fenv.c (__math_force_eval): New define.
(__atomic_feraiseexcept): Use __math_force_eval to evaluete
generic division to generate INVALID and DIVZERO exceptions.

libgfortran/ChangeLog:

* config/fpu-387.h (__math_force_eval): New define.
(local_feraiseexcept): Use __math_force_eval to evaluete
generic division to generate INVALID and DIVZERO exceptions.
libatomic/ChangeLog
libatomic/config/x86/fenv.c
libgcc/ChangeLog
libgcc/config/i386/sfp-exceptions.c
libgfortran/ChangeLog
libgfortran/config/fpu-387.h