[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow SSE/AVX COMI/UCOMI/CMPS/CMPP fp comparison intrinsics to be used in constexpr (PR #182589)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 26 22:51:14 PDT 2026


================
@@ -6662,6 +6725,225 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call,
           return llvm::maximum(A, B);
         });
 
+  // COMI and UCOMI produce the same boolean result, but keep their signaling
+  // and quiet predicates distinct to reflect their different floating-point
+  // exception behavior, even though constant evaluation does not expose it.
----------------
tbaederr wrote:

This comment should be on the function, not in here.

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


More information about the cfe-commits mailing list