diff options
| author | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-22 09:50:35 -0300 |
|---|---|---|
| committer | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-22 09:50:35 -0300 |
| commit | 739474143af1f6dd4aa6042bc51d2770b8babc03 (patch) | |
| tree | 4dc3165038f9ca0e86e90ef155d5982bbe3282eb /runtime/src/thread_stacks.cpp | |
| parent | 41f448261e1de8a410b4d760e69a7e5656cef858 (diff) | |
rdna2spirv: buffer_atomic_{and,or,xor,swap}_x2
A bitwise op or an exchange on a 64-bit element leaves the same memory
as one 32-bit atomic per dword, so these four need no Int64 atomics.
With glc the old pair comes back in vdata; it is two reads and can be
torn by a concurrent 64-bit op on the same element. The bounds check
covers the whole 8-byte element, as for a typed 32_32 element (partly
in-range behaviour is not measured). add/sub/min/max_x2 and cmpswap_x2
stay Unsupported.
tests/semantic/test_buffer_atomics_x2.py runs them in the interpreter.
docs/design.md row added.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions