Float atomic min/max: handle -0.0 and f64 operands #37

Merged
grooving6 merged 1 commit from upstream-pr/38 into main 2026-11-22 19:22:11 +00:00
grooving6 commented 2026-11-22 18:10:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by grooving6 on 2026-11-22T18:10:32Z.


Summary

  • Route f32 and f64 memory min/max atomics through sign-aware integer atomics so -0.0 takes the negative-value path.
  • Add translation and GPU coverage for f64 atomics across buffer, flat, and global memory, including -0.0 results and GLC return values.

Testing

  • Added translation checks for native 64-bit atomic generation and memory-window accessors.
  • Added GPU tests for f32 -0.0 operands and f64 min/max across buffer, flat, and global memory.
  • DXC compilation runs in the translation test when DXC is available; GPU tests return early when no GPU is available.
<!-- greyfinch-sync:ivall/xcl:issue:6545894714 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/38). Originally posted by [grooving6](https://github.com/grooving6) on 2026-11-22T18:10:32Z. --- ## Summary - Route f32 and f64 memory min/max atomics through sign-aware integer atomics so `-0.0` takes the negative-value path. - Add translation and GPU coverage for f64 atomics across buffer, flat, and global memory, including `-0.0` results and GLC return values. ## Testing - Added translation checks for native 64-bit atomic generation and memory-window accessors. - Added GPU tests for f32 `-0.0` operands and f64 min/max across buffer, flat, and global memory. - DXC compilation runs in the translation test when DXC is available; GPU tests return early when no GPU is available.
upstream-sync closed this pull request 2026-11-24 06:56:51 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!37
No description provided.