This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH i386]: Handle FP_EX_DENORM and improve __sfp_handle_exceptions


Hello!

Attached patch adds missing FP_EX_DENORM handling to x86 soft-fp
exception generator and improves support code a bit. The FP_EX_DENORM
handling will be needed by gfortran IEEE support.

2013-11-07  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/sfp-exceptions.c (__sfp_handle_exceptions): Handle
    FP_EX_DENORM.  Store result to volatile location after SSE division
    to close interrupt window.  Remove unneeded fwait after x87
    division since interrupt window will be closed by emitted fstp.

Tested on x86_64-pc-linux-gnu {,-m32} and committed to mainline SVN.

The patch will be backported to other release branches due to missing
FP_EX_DENORM.

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]