Skip to content

Implement basic AsType tests for long vectors. #7668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alsepkow
Copy link
Contributor

This PR adds test cases for most of the 'AsType' HLSL intrinsics. It introduces changes to facilitate testing an HLSL intrinsic with an output type that does not match the input type. This functionality required some changes to the TestConfig object as well as the addition of a 'VariantVector' alias to store the expected output.

Verified locally by running new and all existing long vector exec test cases against WARP.

Resolves #7473

Copy link
Contributor

github-actions bot commented Jul 25, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

template <typename DataTypeT, typename LongVectorOpTypeT>
bool LongVector::TestConfig<DataTypeT, LongVectorOpTypeT>::resolveOutputTypeAndVerifyOutput(MappedData &ShaderOutData) {

if constexpr (std::is_same_v<LongVectorOpTypeT, LongVector::UnaryOpType>) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: same here for early exit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

Long Vector Execution Tests: AsType Ops
2 participants