[llvm] [llubi] Initial support for floating-point numbers (PR #188453)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 26 08:00:14 PDT 2026
================
@@ -767,6 +864,50 @@ class InstExecutor : public InstVisitor<InstExecutor, void> {
});
}
+ void visitFAdd(BinaryOperator &I) {
+ visitFPBinOp(I, [this](const APFloat &LHS, const APFloat &RHS) -> AnyValue {
+ APFloat Res = LHS;
+ Res.add(RHS, CurrentRoundingMode);
----------------
nikic wrote:
Non-constrained FP operations always use rmToNearest rounding mode.
https://github.com/llvm/llvm-project/pull/188453
More information about the llvm-commits
mailing list