LOP32I

Integer, logic, video and predicate instructions

fixed bit field field the encoding fixes should be

LOP32I

6362616059585756555453525150494847464544434241403938373635343332
000001[57]rightleftvalue[52]right0
313029282726252423222120191817161514131211109876543210
right0pred.notpredRaRd

bits 63:48: 0000 01-- ---- ----

Runs execute_LOP32I with Form() 0.

Fields

FieldBitsFrom
[57]57execute_LOP32I
right56execute_LOP32I
left55execute_LOP32I
value54:53execute_LOP32I
[52]52execute_LOP32I
right051:20execute_LOP32I
pred.not19the decoder
pred18:16the decoder
Ra15:8RegA()
Rd7:0Dst()

Operation Sail

LOP32I: a's and the immediate's operation (53-54), each inverted with 55 and 56; .CC (52) with .X (57)

let left0 = R_read(RegA());
let right0 = Bits32(Field(20, 32));
let left = if Field(55, 1) == 0b1 then not_vec(left0) else left0;
let right = if Field(56, 1) == 0b1 then not_vec(right0) else right0;
let value = Logic(UInt(Field(53, 2)), left, right);
R_write(Dst(), value);
if Field(52, 1) == 0b1 then FlagsLogicExtended(value, UInt(Field(57, 1)))

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