[llvm] [llubi] Initial support for floating-point numbers (PR #188453)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 5 11:41:19 PDT 2026
================
@@ -140,6 +319,46 @@ class InstExecutor : public InstVisitor<InstExecutor, void>,
});
}
+ void visitFPBinOp(
+ Instruction &I,
+ function_ref<APFloat(const APFloat &, const APFloat &)> ScalarFn) {
+ FastMathFlags FMF = cast<FPMathOperator>(I).getFastMathFlags();
+ DenormalMode DenormMode = getCurrentDenormalMode(I);
+
+ if (!isDefaultFPEnvironment(CurrentExceptionBehavior,
+ CurrentRoundingMode)) {
+ Status = false;
----------------
dtcxzyw wrote:
```suggestion
```
Handled by reportImmediateUB.
https://github.com/llvm/llvm-project/pull/188453
More information about the llvm-commits
mailing list