Skip to content

hardware/audit/apfloat: llvm::APFloat on its small formats - #53

Merged
lmtlssss merged 2 commits into
mainfrom
apfloat-audit
Nov 14, 2026
Merged

lmtlssss merged 2 commits into
mainfrom
apfloat-audit

Conversation

@lmtlssss

Copy link
Copy Markdown
Member

Every operand pair of the eleven 8-, 6- and 4-bit formats of release 23.1.4 in five rounding modes, every operand triple of the fused multiply-add, the conversions and the class functions: 695,676,784 results against exact integer arithmetic. 1,391 values are wrong, in two places LLVM already has on record. On main, a result below the smallest normal number that rounds up to it returns opInexact without opUnderflow, in binary64 too; the folder has the reproducer, the same products on an x86-64 and an arm64 processor, and a patch with a unit test.

@lmtlssss
lmtlssss merged commit 6da9689 into main Nov 14, 2026
7 checks passed
@lmtlssss
lmtlssss deleted the apfloat-audit branch November 14, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant