[clang] [Clang] Add constexpr eval for cmath builtins (PR #194327)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 22 16:20:07 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.
----------------
Serosh-commits 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.
updated
https://github.com/llvm/llvm-project/pull/194327
More information about the cfe-commits
mailing list