[clang] [Clang] Add constexpr eval for cmath builtins (PR #194327)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Sun May 10 16:22:04 PDT 2026
================
@@ -517,6 +536,7 @@ static bool interp__builtin_fmin(InterpState &S, CodePtr OpPC,
const Floating &LHS = S.Stk.pop<Floating>();
Floating Result = S.allocFloat(LHS.getSemantics());
+ // fmin and fmax handle special values (NaN, INF) per IEEE 754.
----------------
hubert-reinterpretcast wrote:
I get the feeling that this comment has become out-of-sync with the code. The functions named by similar comments elsewhere appear to refer to the functions being called internally in the compiler.
https://github.com/llvm/llvm-project/pull/194327
More information about the cfe-commits
mailing list