Skip to content

Add InterlockedAnd tests#1184

Open
bob80905 wants to merge 5 commits into
llvm:mainfrom
bob80905:add_interlockedand_tests
Open

Add InterlockedAnd tests#1184
bob80905 wants to merge 5 commits into
llvm:mainfrom
bob80905:add_interlockedand_tests

Conversation

@bob80905
Copy link
Copy Markdown
Contributor

This PR adds tests for InterlockedAnd
Adds 32 bit and 64 bit signed/unsigned integer tests
Fixes #849

Comment on lines +3 to +6
// This test exercises InterlockedAnd on 64-bit typed RWBuffer resources.
// 64-bit atomics on typed UAVs are an optional Shader Model 6.6 capability
// (D3D12 cap AtomicInt64OnTypedResourceSupported, Vulkan feature
// shaderBufferInt64Atomics), surfaced to lit as `Int64TypedResourceAtomics`.
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.

# Unimplemented: https://github.com/llvm/llvm-project/issues/99125
# XFAIL: Clang

# REQUIRES: Int64
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.

I noticed in this PR you are not adding a REQUIRES: SM_6_6 but in your InterlockedOr PR you are.

Suggested change
# REQUIRES: Int64
# REQUIRES: Int64 && SM_6_6

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.

There also should be a REQUIRES: Int64GroupSharedAtomics since you're using int64 groupshared variables.

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 InterlockedAnd

3 participants