[clang] [X86][Clang] Add constexpr support for _mm_min_ss/_mm_max_ss/_mm_min_sd/_mm_max_sd/_mm_min_sh/_mm_max_sh intrinsics (PR #178029)

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 3 05:26:44 PST 2026


================
@@ -3403,6 +3401,13 @@ let Features = "avx512fp16", Attributes = [NoThrow, Const, Constexpr, RequiredVe
   def minph512 : X86Builtin<"_Vector<32, _Float16>(_Vector<32, _Float16>, _Vector<32, _Float16>, _Constant int)">;
 }
 
+let Features = "avx512fp16", Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<128>] in {
+  def maxsh : X86Builtin<"_Vector<8, _Float16>(_Vector<8, _Float16>, _Vector<8, _Float16>)">;
+  def minsh : X86Builtin<"_Vector<8, _Float16>(_Vector<8, _Float16>, _Vector<8, _Float16>)">;
----------------
RKSimon wrote:

do maxsh/minsh exist?

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


More information about the cfe-commits mailing list