File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -12880,7 +12880,10 @@ class <t_firstclass>` type.
12880
12880
:ref:`fast-math flags <fastmath>`. These are optimization hints to enable
12881
12881
otherwise unsafe floating-point optimizations. Fast-math flags are only valid
12882
12882
for selects that return :ref:`supported floating-point types
12883
- <fastmath_return_types>`.
12883
+ <fastmath_return_types>`. Note that the presence of value which would otherwise result
12884
+ in poison does not cause the result to be poison if the value is on the non-selected arm.
12885
+ If :ref:`fast-math flags <fastmath>` are present, they are only applied to the result,
12886
+ not both arms.
12884
12887
12885
12888
Semantics:
12886
12889
""""""""""
@@ -12900,7 +12903,9 @@ Example:
12900
12903
12901
12904
.. code-block:: llvm
12902
12905
12903
- %X = select i1 true, i8 17, i8 42 ; yields i8:17
12906
+ %X = select i1 true, i8 17, i8 42 ; yields i8:17
12907
+ %Y = select nnan i1 true, float 0.0, float NaN ; yields float:0.0
12908
+ %Z = select nnan i1 false, float 0.0, float NaN ; yields float:poison
12904
12909
12905
12910
12906
12911
.. _i_freeze:
You can’t perform that action at this time.
0 commit comments