[clang] [llvm] Intrinsic: introduce minimumnum and maximumnum (PR #93841)
Francis Visoiu Mistrih via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 18 15:41:32 PDT 2024
================
@@ -15883,6 +15883,100 @@ The returned value is completely identical to the input except for the sign bit;
in particular, if the input is a NaN, then the quiet/signaling bit and payload
are perfectly preserved.
+.. _i_fminmax_family:
+
+'``llvm.min.*``' Intrinsics Comparation
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Standard:
+"""""""""
+
+IEEE754 and ISO C define some min/max operations, and they have some differences
+on working with qNaN/sNaN and +0.0/-0.0. Here is the list:
+
+.. list-table::
+ :header-rows: 2
+
+ * - ``ISO C``
+ - fmin/fmax
+ - fmininum/fmaximum
+ - fminimum_num/fmaximum_num
+
+ * - ``IEEE754``
+ - nimNum/maxNum (2008)
----------------
francisvm wrote:
```suggestion
- minNum/maxNum (2008)
```
https://github.com/llvm/llvm-project/pull/93841
More information about the cfe-commits
mailing list