Skip to content

Commit cd80e84

Browse files
committed
de-duplicate paragraph about running code in non-default floatenv
1 parent d107aa0 commit cd80e84

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

llvm/docs/LangRef.rst

+6-10
Original file line numberDiff line numberDiff line change
@@ -3605,11 +3605,6 @@ most notably, the :ref:`fast-math flags <fastmath>` as well as the ``strictfp``
36053605
and ``denormal-fp-math`` attributes. See their corresponding documentation for
36063606
details.
36073607

3608-
If the compiled code is executed in a non-default floating-point environment
3609-
(this includes non-standard behavior such as subnormal flushing), the result is
3610-
typically undefined behavior unless attributes like ``strictfp`` and
3611-
``denormal-fp-math`` or :ref:`constrained intrinsics <constrainedfp>` are used.
3612-
36133608
.. _floatenv:
36143609

36153610
Floating-Point Environment
@@ -3620,11 +3615,12 @@ status flags are not observable. Therefore, floating-point math operations do
36203615
not have side effects and may be speculated freely. Results assume the
36213616
round-to-nearest rounding mode, and subnormals are assumed to be preserved.
36223617

3623-
Running LLVM code in an environment where these assumptions are not met can lead
3624-
to undefined behavior. The ``strictfp`` and ``denormal-fp-math`` attributes as
3625-
well as :ref:`Constrained Floating-Point Intrinsics <constrainedfp>` can be used
3626-
to weaken LLVM's assumptions and ensure defined behavior in non-default
3627-
floating-point environments; see their respective documentation for details.
3618+
Running LLVM code in an environment where these assumptions are not met
3619+
typically leads to undefined behavior. The ``strictfp`` and ``denormal-fp-math``
3620+
attributes as well as :ref:`Constrained Floating-Point Intrinsics
3621+
<constrainedfp>` can be used to weaken LLVM's assumptions and ensure defined
3622+
behavior in non-default floating-point environments; see their respective
3623+
documentation for details.
36283624

36293625
.. _floatnan:
36303626

0 commit comments

Comments
 (0)