ULOP3

The uniform datapath

fixed bit field field the encoding fixes should be

Encoding

12712612512412312212112011911811711611511411311211111010910810710610510410310210110099989796
reusewaitrd_barwr_baryieldstall
9594939291908988878685848382818079787776757473727170696867666564
[90:87][83:81][80]v
6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
URaURdpred.notpredform010010010

bits 15:0: ---- 0010 1001 0010
bits 15:0: ---- 0100 1001 0010
bits 15:0: ---- 1000 1001 0010

Forms

Form (bits 11:9)bc
1 (001)URb at 32URc at 64
2 (010)URb at 64immediate at 32
4 (100)immediate at 32URc at 64

Runs execute_LOP3.

Fields

FieldBitsFrom
reuse125:122the decoder
wait121:116the decoder
rd_bar115:113the decoder
wr_bar112:110the decoder
yield109the decoder
stall108:105the decoder
[90:87]90:87execute_LOP3
[83:81]83:81execute_LOP3
[80]80execute_LOP3
v79:72execute_LOP3
URa29:24the decoder
URd21:16the decoder
pred.not15the decoder
pred14:12the decoder
form11:9the decoder

Operation Sail

LOP3 and ULOP3: the truth table at 72 of a, b and c, and whether the result is not zero in the predicate at 81. A predicate operand (80, 87-90) is refused

if Field(80, 1) == 0b1 | Field(87, 4) != 0xf then throw(Unsupported("LOP3 with a predicate operand"));
let v = Lut3(Field(72, 8), SrcBits(A), SrcBits(B), SrcBits(C));
D_write(v);
PredWrite(UInt(Field(81, 3)), v != 0x00000000, Uniform())

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.