[flang-commits] [flang] [llvm] [flang] Fix wrong result for exponentiation when denormal is expected (PR #205262)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Oct 8 02:26:03 PDT 2026
================
@@ -208,6 +208,10 @@ RT_API_ATTRS BTy FPowI(BTy base, ETy exp) {
} else if (isNegativePower) {
exp = -exp;
}
+ if (isNegativePower && base != BTy{0} && std::abs(base) > BTy{1}) {
----------------
tblah wrote:
I'm not sure that `std::abs` will be available for `f128` on all platforms
https://github.com/llvm/llvm-project/pull/205262
More information about the flang-commits
mailing list