@@ -818,7 +818,23 @@ of different sizes and signs is forbidden in binary and ternary builtins.
818
818
T __builtin_elementwise_fmod(T x, T y) return The floating-point remainder of (x/y) whose sign floating point types
819
819
matches the sign of x.
820
820
T __builtin_elementwise_max(T x, T y) return x or y, whichever is larger integer and floating point types
821
+ For floating point types, follows semantics of maxNum
822
+ in IEEE 754-2008. See `LangRef
823
+ <http://llvm.org/docs/LangRef.html#llvm-min-intrinsics-comparation> `_
824
+ for the comparison.
821
825
T __builtin_elementwise_min(T x, T y) return x or y, whichever is smaller integer and floating point types
826
+ For floating point types, follows semantics of minNum
827
+ in IEEE 754-2008. See `LangRef
828
+ <http://llvm.org/docs/LangRef.html#llvm-min-intrinsics-comparation> `_
829
+ for the comparison.
830
+ T __builtin_elementwise_maxnum(T x, T y) return x or y, whichever is larger. Follows IEEE 754-2008 floating point types
831
+ semantics (maxNum) with +0.0>-0.0. See `LangRef
832
+ <http://llvm.org/docs/LangRef.html#llvm-min-intrinsics-comparation> `_
833
+ for the comparison.
834
+ T __builtin_elementwise_minnum(T x, T y) return x or y, whichever is smaller. Follows IEEE 754-2008 floating point types
835
+ semantics (minNum) with +0.0>-0.0. See `LangRef
836
+ <http://llvm.org/docs/LangRef.html#llvm-min-intrinsics-comparation> `_
837
+ for the comparison.
822
838
T __builtin_elementwise_add_sat(T x, T y) return the sum of x and y, clamped to the range of integer types
823
839
representable values for the signed/unsigned integer type.
824
840
T __builtin_elementwise_sub_sat(T x, T y) return the difference of x and y, clamped to the range of integer types
0 commit comments