[compiler-rt] compiler-rt/arm: Check for overflow when adding float denorms (PR #185245)
Keith Packard via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 10 10:13:27 PDT 2026
================
@@ -113,6 +113,15 @@ LOCAL_LABEL(done_align):
// aSignificand += bSignificand;
adds r4, r4, r5
+ // Check for denorm result
+ cmp r2, #0
+ bne 1f
+
+ // Add carry bit to exponent
----------------
keith-packard wrote:
I've added `// branch if result is not denormal` to agree with the sense of the branch.
https://github.com/llvm/llvm-project/pull/185245
More information about the llvm-commits
mailing list