PSET

Integer, logic, video and predicate instructions

fixed bit field field the encoding fixes should be

PSET

6362616059585756555453525150494847464544434241403938373635343332
0101000010001[47]testvaluepcpcpb
313029282726252423222120191817161514131211109876543210
pbtestpred.notpredpapaRd

bits 63:48: 0101 0000 1000 1---

Runs execute_PSET with Form() 0.

Fields

FieldBitsFrom
[47]47execute_PSET
test46:45execute_PSET
value44execute_PSET
pc42execute_PSET
pc41:39execute_PSET
pb32execute_PSET
pb31:29execute_PSET
test25:24execute_PSET
pred.not19the decoder
pred18:16the decoder
pa15execute_PSET
pa14:12execute_PSET
Rd7:0Dst()

Operation Sail

PSET: 1.0 (44) or all ones where the predicates' combination holds, else 0; .CC the flags

let pa = PredRead(UInt(Field(12, 3)), UInt(Field(15, 1)));
let pb = PredRead(UInt(Field(29, 3)), UInt(Field(32, 1)));
let pc = PredRead(UInt(Field(39, 3)), UInt(Field(42, 1)));
let test = Combine53(UInt(Field(45, 2)), Combine53(UInt(Field(24, 2)), pa, pb), pc);
let value = RawSelect(test, if Field(44, 1) == 0b1 then 0x3f800000 else 0xffffffff, 0x00000000);
if Field(47, 1) == 0b1 then FlagsLogic(value);
R_write(Dst(), value)

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 Eden's maxwell.inc (GPL-2.0-or-later).