[clang] [Clang] Add constexpr eval for cmath builtins (PR #194327)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 22 16:20:13 PDT 2026
================
@@ -531,6 +551,7 @@ static bool interp__builtin_fmax(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:
> Same comment.
ditto
https://github.com/llvm/llvm-project/pull/194327
More information about the cfe-commits
mailing list