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: Start implementing -frounding-math


On Mon, 24 Jun 2019, Richard Biener wrote:

> On the patch I'd name _DIV _RDIV (to match the tree code we are dealing
> with).  You miss _NEGATE and also the _FIX_TRUNC and _FLOAT in
> case those might trap with -ftrapping-math.  There are also internal

Negation (and abs and copysign) can never raise any exceptions even with 
signaling NaN arguments.

Conversion between integers and floating-point *can* raise exceptions 
(depending on the types involved, e.g. conversions from int to IEEE double 
are always exact with no exceptions raised).  And conversions from integer 
to floating-point, when the types mean they aren't necessarily exact, 
depend on the rounding mode (whereas conversions from floating-point to 
integer types always truncate towards 0).

-- 
Joseph S. Myers
joseph@codesourcery.com


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