ISETP

Integer, logic, video and predicate instructions

fixed bit field field the encoding fixes should be

ISETP (reg)

6362616059585756555453525150494847464544434241403938373635343332
010110110110
313029282726252423222120191817161514131211109876543210
Rbpred.notpredRa

bits 63:48: 0101 1011 0110 ----

Runs execute_ISETP with Form() 0.

ISETP (cbuf)

6362616059585756555453525150494847464544434241403938373635343332
010010110110cbuf.bankcbuf.offset
313029282726252423222120191817161514131211109876543210
cbuf.offsetpred.notpredRa

bits 63:48: 0100 1011 0110 ----

Runs execute_ISETP with Form() 1.

ISETP (imm)

6362616059585756555453525150494847464544434241403938373635343332
0011011imm.sign0110imm
313029282726252423222120191817161514131211109876543210
immpred.notpredRa

bits 63:48: 0011 011- 0110 ----

Runs execute_ISETP with Form() 2.

Fields

The operation reads some of these fields in some forms alone (it chooses by Form()), so the diagrams show only the decoder's.

FieldBitsFrom
yes46:45execute_ISETP
condition42execute_ISETP
condition41:39execute_ISETP
Rb27:20the right operand
pred.not19the decoder
pred18:16the decoder
Ra15:8RegA()
[5:3]5:3execute_ISETP
[2:0]2:0execute_ISETP

Operation Sail

ISETP and ISET: a and b compared (shader_integer_compare), combined with the predicate at 39

let left = R_read(RegA());
let right = RightOf(Form());
let test = IntegerCompare(left, right);
let condition = PredRead(UInt(Field(39, 3)), UInt(Field(42, 1)));
let yes = Combine53(UInt(Field(45, 2)), test, condition);
let no = Combine53(UInt(Field(45, 2)), RawNot(test), condition);
PredWrite(UInt(Field(3, 3)), yes);
PredWrite(UInt(Field(0, 3)), no)

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