Repository navigation
Conversation
AI-assisted: retain halves, dispatch_threads and lds_integer modules. Workspace checks and three focused lowering regressions passed.
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.
AI-assisted change.
Summary
Lower
ds_inc_u32,ds_dec_u32,ds_rsub_u32andds_mskor_b32, including their returning forms. INC and DEC use DATA0 as an unsigned limit. Reverse subtraction wraps modulo 2^32, and masked OR clears DATA0 bits before OR-ing in DATA1. The returning forms deliver the old value observed by the successful compare-exchange.The synthetic reference cases cover unsigned boundaries, operand order, result and return values, and contention. AMD RDNA2 ISA, section 12.13.
Validation
Update against upstream
06702feMerged upstream without rewriting history. Kept the upstream dispatch-spread regression and the seven existing LDS integer tests. Moved the integer compare-exchange helper into
emit/lds_integer.rssolower.rsstays below the existing 512 KiB asset-policy limit (522,453 bytes); no policy changes. Removed an unreachableadd_f32match alternative; existing floating-point lowering is unchanged.Exact head
c19964c29d0e0a3a8ead26c640fd9d692e70942dpassed local Windows Rust 1.98.1 workspace Cargo Check, strict Clippy (ordinary and all-features), the three synthetic integer lowering tests, and asset policy (221 files). Total elapsed 12.95 seconds. The four SM 6.6 integer value tests are still ignored by default on this submission. A broader LDS-related run before the module extraction hit the existing float-atomic test'sno SM 6.6 device availablefailure with the Windows 10 inbox runtime. No new hardware result or performance claim. AI-assisted.Current upstream integration (52ac4ec)
Merged current upstream without rewriting history. New head
74e3ac145dfb333c2b4c37aa4dd924e0c8a9ddaa. Preserved the upstream halves and dispatch_threads modules alongside lds_integer. Clean local Windows workspace check and Clippy (all targets/all features, warnings denied), three focused INC/DEC, RSUB and MSKOR lowering regressions, and diff check passed. The four SM 6.6 value tests were not rerun. Full asset policy remains blocked by upstream's existing oversized source files (#1357); no policy bypass. AI-assisted.