[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow SSE/AVX COMI/UCOMI/CMPS/CMPP fp comparison intrinsics to be used in constexpr (PR #182589)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 14 06:06:22 PDT 2026
================
@@ -4186,6 +4161,229 @@ static bool interp__builtin_ia32_gfni_mul(InterpState &S, CodePtr OpPC,
return true;
}
+static bool interp__builtin_x86_comi(InterpState &S, CodePtr OpPC,
+ const InterpFrame *Frame,
+ const CallExpr *Call, unsigned ID) {
+ uint32_t Predicate;
+ switch (ID) {
----------------
RKSimon wrote:
don't nest switches like this - add a Predicate argument to interp__builtin_x86_comi and split the switch below - see similar intrinsics for examples
https://github.com/llvm/llvm-project/pull/182589
More information about the cfe-commits
mailing list