SMLSI

Moves

fixed bit field field the encoding fixes should be

Encoding

6362616059585756555453525150494847464544434241403938373635343332
1111101001noschedtemp_limitpa_limitsa_limitdest_modesrc0_modesrc1_modesrc2_mode
313029282726252423222120191817161514131211109876543210
dest_incsrc0_incsrc1_incsrc2_inc

bits 63:0: 1111 1010 --01 -x-- xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx

It is in a group of patterns that may match the same word: the decoder tries them in this order, and the first that matches decodes it: SMP, PHAS, NOP, BR, SMLSI, SMBO, KILL, LIMM, DEPTHF, SPEC, VLDST.

Runs execute_SMLSI with Form() 0.

Fields

FieldBitsThe Sail reads it in
nosched50
temp_limit47:44
pa_limit43:40
sa_limit39:36
dest_mode35Bit(35)
src0_mode34
src1_mode33
src2_mode32
dest_inc31:24
src0_inc23:16
src1_inc15:8
src2_inc7:0

Operation Sail

SMLSI: each operand's increments (src0, src1, src2, the destination): with its mode, the four two-bit ones of its byte, else repeat i's i times the signed byte

foreach (k from 0 to 3) {
    let at = if k == 3 then 24 else 16 - 8 * k;
    let mode = if k == 3 then Bit(35) else Bit(34 - k);
    if mode == 1 then {
        foreach (i from 0 to 3) SetIncrease(k, i, UInt(Field(at + 2 * i, 2)))
    } else {
        foreach (i from 0 to 16) SetIncrease(k, i, i * SInt(Field(at, 8)))
    }
}

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 Vita3K's usse_translator_entry.cpp (GPL-2.0-or-later).