[clang] [Clang] Allow VDBPSADBW intrinsics in constexpr (PR #188887)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 26 22:54:59 PDT 2026


================
@@ -2820,6 +2820,65 @@ static bool interp__builtin_ia32_pmul(
   return true;
 }
 
+static bool interp__builtin_ia32_dbpsadbw(InterpState &S, CodePtr OpPC,
+                                          const CallExpr *Call) {
+  assert(Call->getNumArgs() == 3);
+  QualType Arg2Type = Call->getArg(2)->getType();
+  APSInt ImmVal = popToAPSInt(S, Arg2Type);
----------------
tbaederr wrote:

```suggestion
  APSInt ImmVal = popToUInt64(S, Arg2Type);
```

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


More information about the cfe-commits mailing list