[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)

NagaChaitanya Vellanki via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 6 08:31:35 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>)">;
----------------
chaitanyav wrote:

please let me know if these should be removed.

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


More information about the cfe-commits mailing list