[clang] [clang][X86] Add constexpr support for mpsadbw128/256 intrinsics (PR #202257)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 22 00:27:42 PDT 2026


================
@@ -12694,6 +12694,46 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) {
     return Success(APValue(ResultElements.data(), ResultElements.size()), E);
   }
 
+  case clang::X86::BI__builtin_ia32_mpsadbw128:
+  case clang::X86::BI__builtin_ia32_mpsadbw256: {
+    APValue SourceA, SourceB, SourceImm;
+    if (!EvaluateAsRValue(Info, E->getArg(0), SourceA) ||
----------------
adream307 wrote:

Done

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


More information about the cfe-commits mailing list