[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 11 07:32:42 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) ||
----------------
tbaederr wrote:
Well you didn't implement that. If you add a new file anyway, you don't have to add a run line for it.
https://github.com/llvm/llvm-project/pull/96281
More information about the cfe-commits
mailing list