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]

Re: [PATCH, x86_64]: Support exceptions and rounding modes for TFmode soft-fp


Uros Bizjak wrote:

2007-05-19 Uros Bizjak <ubizjak@gmail.com>

* config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
New constants.
(struct fenv): New structure.
(FP_HANDLE_EXCEPTIONS): New define.
(FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
(_FP_DECL_EXP): New define.
(FP_INIT_ROUNDMODE): New define.
(FP_ROUNDMODE): New define.

I have committed this patch to mainline SVN. The patch to clean-up neg?f2() functions was posted to libc-alpha.


Following this addition, x86_64 should fully support basic __float128 (TFmode) arithmetic, together with all FP and integer conversions, including conversions to/from XFmode and conversions to/from TImode. Additionally, all IEEE rounding modes are supported as well as all IEEE FP exceptions.

I think that gcc-4.3/changes.html should also mention this new enhancement to gcc.

Uros.


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