[clang] [Clang] Add __builtin_(elementwise|reduce)_(max|min)imum (PR #110198)

Francis Visoiu Mistrih via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 27 11:21:18 PDT 2024


================
@@ -706,6 +706,12 @@ Unless specified otherwise operation(±0) = ±0 and operation(±infinity) = ±in
                                              representable values for the signed/unsigned integer type.
  T __builtin_elementwise_sub_sat(T x, T y)   return the difference of x and y, clamped to the range of        integer types
                                              representable values for the signed/unsigned integer type.
+ T __builtin_elementwise_maximum(T x, T y)   return x or y, whichever is larger. If exactly one argument is   integer and floating point types
+                                             a NaN, return the other argument. If both arguments are NaNs,
----------------
francisvm wrote:

Added link to LangRef table.

https://github.com/llvm/llvm-project/pull/110198


More information about the cfe-commits mailing list