Skip to content

Add InterlockedXor tests#1370

Open
bob80905 wants to merge 2 commits into
llvm:mainfrom
bob80905:add_interlockedxor_tests
Open

Add InterlockedXor tests#1370
bob80905 wants to merge 2 commits into
llvm:mainfrom
bob80905:add_interlockedxor_tests

Conversation

@bob80905

Copy link
Copy Markdown
Contributor

This PR implements the tests for the InterlockedXor HLSL function.
Adds 32 bit and 64 bit signed/unsigned integer tests, along with some resource member function tests.

Assisted by: Github Copilot
Fixes: #855

Format: UInt64
Channels: 1
FillSize: 32
FillValue: 137 # trash non-zero initialization data

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why does only InterlockedXor.resources.typed.int64.test fill atomic-destination buffers with trash? Should the other InterlockedXor.resources.* tests also fill the atomic-destination buffers with trash?

// covered here, to keep this test portable across implementations.
//
// See InterlockedXor.32.test for a full description of the unique-bit
// atomicity construction: each destination holds four 64-bit words, thread t

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: "each destination holds four 64-bit words" is inaccurate, since BABuf holds 8 64-bit words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test for InterlockedXor

4 participants