ISCADD32I

Integer, logic, video and predicate instructions

fixed bit field field the encoding fixes should be

ISCADD32I

6362616059585756555453525150494847464544434241403938373635343332
000101
313029282726252423222120191817161514131211109876543210
pred.notpredRaRd

bits 63:48: 0001 01-- ---- ----

Runs execute_ISCADD with Form() 3.

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
rhs51:20execute_ISCADD
avg49:48execute_ISCADD
pred.not19the decoder
pred18:16the decoder
Ra15:8RegA()
Rd7:0Dst()

Operation Sail

ISCADD and ISCADD32I: (a << shift) + b, the shift at 39 (53 for ISCADD32I), b negated or a by 48-49, .CC at 47 (52); ISCADD32I: a 32-bit immediate, and no negation

let imm32 = Form() == 3;
let left = R_read(RegA());
let avg = if imm32 then 0 else UInt(Field(48, 2));
let shifted = left << to_bits(32, UInt(Field(if imm32 then 53 else 39, 5)));
let rhs = if imm32 then Bits32(Field(20, 32)) else RightOf(Form());
R_write(Dst(), IntegerAdd(shifted, rhs, avg, 0, UInt(Field(if imm32 then 52 else 47, 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).