[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow SSE41 phminposuw intrinsic to be used in constexp (PR #163041)
Shawn K via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 14 10:53:39 PDT 2025
================
@@ -2899,6 +2899,45 @@ static bool interp__builtin_x86_insert_subvector(InterpState &S, CodePtr OpPC,
return true;
}
+static bool interp__builtin_ia32_phminposuw(InterpState &S, CodePtr OpPC,
+ const CallExpr *Call) {
+ assert(Call->getNumArgs() == 1);
+
+ const Pointer &Source = S.Stk.pop<Pointer>();
+ const Pointer &Dest = S.Stk.peek<Pointer>();
+
+ unsigned SourceLen = Source.getNumElems();
+ QualType ElemQT = getElemType(Source);
+ OptPrimType ElemT = S.getContext().classify(ElemQT);
+ unsigned LaneBitWidth = S.getASTContext().getTypeSize(ElemQT);
----------------
kimsh02 wrote:
Okay, I misunderstood "lane" then
https://github.com/llvm/llvm-project/pull/163041
More information about the cfe-commits
mailing list