Repository navigation
Conversation
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.
The new
v_div_scale_f32lowering ignores the numerator when choosing the result and VCC, and applies a 2^32 scale instead of the pre-scale operation's exponent adjustments. For denominator 1 and numerator 2^100 it silently returns 1 with VCC clear, whereas RDNA 2 opcode 365 requires 2^64 with VCC set.Keep both instruction spellings explicitly rejected until the complete semantics are implemented and verified. The scanner still recognizes the opcode but no longer labels it supported. Add rejection controls for the exponent-gap reproducer, zero and small-normal denominators, and 1/1. The FMA scaling controls now obtain VCC from a comparison independently of this rejected operation.
Validation on Linux/Python 3.14.4:
python3 -B tests/pixel_aot_check.pyandpython3 -B tests/docs_links_check.pypassed;python3 -B tests/rdna2_tools_check.pypassed 52 tests with one additional test skipped. Requirements from requirements-dev were installed. All four CI jobs passed: LLVM 15 assembly/translation, platform-independent Python checks, Windows development/WARP, and Windows release/WARP at /O2. This validates rejection and regressions, not native division prescaling.This is a conservative correctness fix, not a complete implementation of division prescaling. One commit against the head branch of R0Y00#704; merging into
shader/valu-fma-divupdates that existing PR.