PSETP

Integer, logic, video and predicate instructions

fixed bit field field the encoding fixes should be

PSETP

6362616059585756555453525150494847464544434241403938373635343332
0101000010010[46:45]pcpcpb
313029282726252423222120191817161514131211109876543210
pbfirstpred.notpredpapa[5:3][2:0]

bits 63:48: 0101 0000 1001 0---

Runs execute_PSETP with Form() 0.

Fields

FieldBitsFrom
[46:45]46:45execute_PSETP
pc42execute_PSETP
pc41:39execute_PSETP
pb32execute_PSETP
pb31:29execute_PSETP
first25:24execute_PSETP
pred.not19the decoder
pred18:16the decoder
pa15execute_PSETP
pa14:12execute_PSETP
[5:3]5:3execute_PSETP
[2:0]2:0execute_PSETP

Operation Sail

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 first = Combine53(UInt(Field(24, 2)), pa, pb);
let second = Combine53(UInt(Field(24, 2)), not_bool(pa), pb);
PredWrite(UInt(Field(3, 3)), Combine53(UInt(Field(45, 2)), first, pc));
PredWrite(UInt(Field(0, 3)), Combine53(UInt(Field(45, 2)), second, pc))

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).