File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3395,11 +3395,12 @@ The default LLVM floating-point environment assumes that traps are disabled and
3395
3395
status flags are not observable. Therefore, floating-point math operations do
3396
3396
not have side effects and may be speculated freely. Results assume the
3397
3397
round-to-nearest rounding mode, and subnormals are assumed to be preserved.
3398
- Running default LLVM code in an environment where these assumptions are not met
3399
- can lead to undefined behavior.
3400
3398
3401
- Code that requires different behavior than this should use the
3402
- :ref:`Constrained Floating-Point Intrinsics <constrainedfp>`.
3399
+ Running LLVM code in an environment where these assumptions are not met can lead
3400
+ to undefined behavior. The ``strictfp`` and ``denormal-fp-math`` attributes as
3401
+ well as :ref:`Constrained Floating-Point Intrinsics <constrainedfp>` can be used
3402
+ to weaken LLVM's assumptions and ensure defined behavior in non-default
3403
+ floating-point environments; see their respective documentation for details.
3403
3404
3404
3405
.. _floatnan:
3405
3406
You can’t perform that action at this time.
0 commit comments