Skip to content

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
bob80905 added a commit that referenced this pull request Aug 18, 2025
This PR implements testing for the WaveReadLaneAt intrinsic. It's an
improved copy of @inbelic's work here:
#295


- 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

---------

Co-authored-by: Finn Plummer <[email protected]>
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