ATOMS (no uniform)

Memory

fixed bit field field the encoding fixes should be

Encoding

12712612512412312212112011911811711611511411311211111010910810710610510410310210110099989796
reusewaitrd_barwr_baryieldstall
9594939291908988878685848382818079787776757473727170696867666564
[91]howkind[69:64]
6362616059585756555453525150494847464544434241403938373635343332
[39:32]
313029282726252423222120191817161514131211109876543210
Rdpred.notpred001110001100

bits 15:0: ---- 0011 1000 1100

ULDC UR, c[bank][UR + offset]: the uniform register at 24, the offset signed (CuAssembler sm_86, cAURI)

Runs execute_ATOMS.

Fields

FieldBitsFrom
reuse125:122the decoder
wait121:116the decoder
rd_bar115:113the decoder
wr_bar112:110the decoder
yield109the decoder
stall108:105the decoder
[91]91execute_ATOMS
how90:87execute_ATOMS
kind75:73execute_ATOMS
[69:64]69:64execute_ATOMS
[39:32]39:32execute_ATOMS
Rd23:16the decoder
pred.not15the decoder
pred14:12the decoder

Operation Sail

ATOMS: the same on shared memory, addressed as an LDS or STS is

let how = UInt(Field(87, 4));
let kind = UInt(Field(73, 3));
let opcode = AtomicOpcode(kind, how);
if opcode == 0 then throw(Unsupported("%s of type %u, operation %u", OpName(), kind, how));
StackAddress(if Field(91, 1) == 0b1 then UInt(Field(64, 6)) else URZ);
SharedVar();
R_write(Dst(), AtomicShared(opcode, R_read(UInt(Field(32, 8)))))

Made from ScarletNX's Sail at 166ad3910f80. The Sail and the encodings' file are ScarletNX's (GPL-3.0-or-later); its encodings are from Mesa's NAK (sm70_encode.rs, MIT) and CuAssembler's sm_86 records.