Skip to content

[DirectX] Add TypedBuffer 64-bit load/store tests#990

Merged
kmpeng merged 13 commits intollvm:mainfrom
kmpeng:typedbuffer-64bit-load-store-tests
Mar 31, 2026
Merged

[DirectX] Add TypedBuffer 64-bit load/store tests#990
kmpeng merged 13 commits intollvm:mainfrom
kmpeng:typedbuffer-64bit-load-store-tests

Conversation

@kmpeng
Copy link
Copy Markdown
Contributor

@kmpeng kmpeng commented Mar 18, 2026

Closes #275.

Adds 64-bit tests for TypedBuffer load/stores testing int64_t and uint64_t. It only tests scalars and vectors of 2 since those are the sizes supported for these types.

@kmpeng kmpeng added the test-all When applied to a PR this will opt-in to additional pre-merge test configurations.. label Mar 18, 2026
@kmpeng kmpeng marked this pull request as ready for review March 18, 2026 17:01
Copy link
Copy Markdown
Member

@farzonl farzonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks fine to me, but i'm a little concerned that you are marking vulkan as unsupported. I think you have a layout issue. In anycase since my change that you are testing was specific to the DX backend I'm approving.

Copy link
Copy Markdown
Contributor

@bogner bogner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also get some test coverage for reading from an RWBuffer and for buffers that have a single int64_t/uint64_t rather than int64_t2/uint64_t2?

Copy link
Copy Markdown
Contributor

@bogner bogner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks generally good, but lets split this into two tests, one with the single int64s and one with the vectors. That way we can light these up separately as we fix #1030 and #1037

@kmpeng kmpeng merged commit 4aa5dfa into llvm:main Mar 31, 2026
12 of 23 checks passed
llvm-beanz pushed a commit to llvm-beanz/offload-test-suite that referenced this pull request Apr 7, 2026
Closes llvm#275.

Adds 64-bit tests for `TypedBuffer` load/stores testing `int64_t` and
`uint64_t`. It only tests scalars and vectors of 2 since those are the
sizes supported for these types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-all When applied to a PR this will opt-in to additional pre-merge test configurations..

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DirectX] Add test Support typedBufferLoad and Store for RWBuffer<int64_t2>, RWBuffer<uint64_t2>

6 participants