feat(bfloat16): error handling, comprehensive tests, v1 plan update#15
Merged
Conversation
Add BFloat16Error type mirroring Float16Error with "bfloat16" prefix in error messages. Wire it into strict conversion path (BFloat16FromFloat32WithMode) and all checked arithmetic operations (BFloat16AddWithMode, BFloat16MulWithMode, BFloat16DivWithMode). Update existing tests to assert the new typed error.
Add 256-value boundary pattern tests covering roundtrip, classification consistency, identity operations. Cover all previously-uncovered functions: IsSubnormal, comparisons, Abs, Min/Max, cross-conversions, FromFloat64, Format verbs, rounding modes. Average bfloat16 function coverage: 99.6% across 68 functions.
Rename "BFloat16 Enhancement Plan" to "Float16 v1 Release Notes". Mark all 6 phases complete: core infrastructure, arithmetic, extended operations, math functions, utilities, and error handling/testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
T46.5.9, T46.5.10, T46.5.11