Skip to content

[Scenario] Intrinsics Functional Tests #213

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
73 tasks
spall opened this issue Apr 10, 2025 · 1 comment
Open
73 tasks

[Scenario] Intrinsics Functional Tests #213

spall opened this issue Apr 10, 2025 · 1 comment
Assignees

Comments

@spall
Copy link
Collaborator

spall commented Apr 10, 2025

In the offload test suite (https://github.com/llvm-beanz/offload-test-suite) create tests for each intrinsic supported in Clang.
These tests are a single file and contain a small section of hlsl code, a section of yaml which sets up the test inputs and outputs, and lines which say how to run the test.
See (https://github.com/llvm-beanz/offload-test-suite/blob/main/test/Basic/cbuffer.test) for an example.

TODO: Create sub issues for each of these intrinsics

  • AddUint64
  • D3DCOLORtoUBYTE4
  • GroupMemoryBarrierWithGroupSync
  • WaveActiveAllTrue
  • WaveActiveAnyTrue
  • WaveActiveCountBits
  • WaveActiveMax
  • WaveActiveSum
  • WaveGetLaneIndex
  • WaveIsFirstLane
  • WaveReadLaneAt
  • abs
  • acos
  • all
  • and
  • any
  • asdouble
  • asfloat
  • asin
  • asint
  • asint16
  • asuint
  • asuint16
  • atan
  • atan2
  • ceil
  • clamp
  • clip
  • cos
  • cosh
  • countbits
  • cross
  • degrees
  • distance
  • dot
  • dot2add
  • dot4add_i8packed
  • dot4add_u8packed
  • exp
  • exp2
  • firstbithigh
  • firstbitlow
  • floor
  • fmod
  • frac
  • isinf
  • length
  • lerp
  • log
  • log10
  • log2
  • mad
  • max
  • min
  • normalize
  • or
  • pow
  • radians
  • rcp
  • reflect
  • reversebits
  • round
  • rsqrt
  • saturate
  • select
  • sign
  • sin
  • sinh
  • smoothstep
  • sqrt
  • step
  • tanh
  • trunc
@spall spall changed the title [SCENARIO] Test all intrinsics using offload test suite [SCENARIO] Intrinsics Functional Tests Apr 10, 2025
@damyanp damyanp changed the title [SCENARIO] Intrinsics Functional Tests [Scenario] Intrinsics Functional Tests Apr 10, 2025
@spall
Copy link
Collaborator Author

spall commented Apr 11, 2025

Relevant: llvm/llvm-project#135453

@spall spall self-assigned this Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant