[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 11 06:45:00 PDT 2024
================
@@ -15314,6 +15314,32 @@ bool FloatExprEvaluator::VisitCallExpr(const CallExpr *E) {
Result = RHS;
return true;
}
+
+ case Builtin::BI__builtin_fmaximum_num:
+ case Builtin::BI__builtin_fmaximum_numf:
+ case Builtin::BI__builtin_fmaximum_numl:
+ case Builtin::BI__builtin_fmaximum_numf16:
+ case Builtin::BI__builtin_fmaximum_numf128: {
+ APFloat RHS(0.);
+ if (!EvaluateFloat(E->getArg(0), Result, Info) ||
----------------
arsenm wrote:
This doesn't have tests showing the evaluation, similar to those added for fmin/fmax in ec32386404409b65d21fdf916110c08912335926
https://github.com/llvm/llvm-project/pull/96281
More information about the cfe-commits
mailing list