================
@@ -710,6 +711,26 @@ static bool interp__builtin_fpclassify(InterpState &S, 
CodePtr OpPC,
   return true;
 }
 
+static bool interp__builtin_exp(InterpState &S, CodePtr OpPC,
+                                const InterpFrame *Frame,
+                                const CallExpr *Call) {
+  const Floating &Arg = S.Stk.pop<Floating>();
+  FPOptions FPO = Call->getFPFeaturesInEffect(S.Ctx.getLangOpts());
+  llvm::RoundingMode RM = getRoundingMode(FPO);
+  APFloat::opStatus Status = APFloat::opStatus::opOK;
+  std::optional<APFloat> Result = exp(Arg.getAPFloat(), RM, &Status);
----------------
lntue wrote:

@hubert-reinterpretcast I have updated the conditions and the tests.  Can you 
see if it matches with the expectations?

https://github.com/llvm/llvm-project/pull/199808
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to