Repository navigation
test(codegen): cover address-space 3 aggregate device-call round trips - #867
Merged
nihalpasham merged 2 commits intoAug 14, 2026
Merged
Conversation
Signed-off-by: Raul Estrada <[email protected]>
uurl
force-pushed
the
test/as3-aggregate-device-call-roundtrip
branch
from
August 13, 2026 05:57
ee8b975 to
d1a4918
Compare
Collaborator
|
Gist: test-only, and it checks the part that matters: shared-memory ( Verified here:
Landing once CI is green. |
nihalpasham
approved these changes
Aug 14, 2026
This was referenced Aug 18, 2026
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.
Closes #866
Summary
Adds explicit regression coverage for shared-memory (
addrspace(3)) pointers crossing device-call boundaries inside aggregate values.The test extends
addressof_sharedarraywith non-inlined device helpers that round-trip aggregates containing shared pointers through both argument and return ABIs.Covered aggregate shapes:
What this tests
Each case exercises the following path:
The returned pointer is used for an actual shared-memory operation, so the test verifies that the pointer remains usable as an AS3 pointer after the complete round trip.
#[inline(never)]is used on the helper functions to preserve the call boundary.Result
All four aggregate forms already work with the current lowering, so this PR contains no compiler changes. It only adds regression coverage for the existing behavior.
Validation
PASS.
PASS.
PASS.
PASS.
Runtime coverage confirms that struct, tuple, array, and enum device-call round trips preserve shared pointers correctly.
The existing raw shared-array receiver regression also continues to pass.