Skip to content

Add WaveReadLaneAt tests #295

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

Closed
wants to merge 12 commits into from
Closed

Conversation

inbelic
Copy link
Contributor

@inbelic inbelic commented Jul 21, 2025

This pr implements testing for the WaveReadLaneAt intrinsic.

  • WaveReadLaneAt.[16|32|64].test adds testing of the basic types (and vectors)
  • WaveReadLaneAt.udt.test adds testing for a matrix, user defined struct and for floating point edge-case values
  • WaveReadLaneAt.index.test adds testing of various use-cases with different indices

Resolves: #144

Copy link
Collaborator

@spall spall left a comment

Choose a reason for hiding this comment

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

I think a test with divergent control flow would be good. So, something like a switch statement where you call WaveReadLaneAt in one or more of the cases.

@bob80905
Copy link
Contributor

bob80905 commented Aug 12, 2025

Closing as a dup for now. This also revealed an issue: llvm/llvm-project#153303

@bob80905 bob80905 closed this Aug 12, 2025
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 WaveReadLaneAt
3 participants