fixed bit field field the encoding fixes should be
| 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 |
| 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | nosched | temp_limit | pa_limit | sa_limit | dest_mode | src0_mode | src1_mode | src2_mode | ||||||||||||||
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| dest_inc | src0_inc | src1_inc | src2_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.
| Field | Bits | The Sail reads it in |
|---|---|---|
| nosched | 50 | |
| temp_limit | 47:44 | |
| pa_limit | 43:40 | |
| sa_limit | 39:36 | |
| dest_mode | 35 | Bit(35) |
| src0_mode | 34 | |
| src1_mode | 33 | |
| src2_mode | 32 | |
| dest_inc | 31:24 | |
| src0_inc | 23:16 | |
| src1_inc | 15:8 | |
| src2_inc | 7:0 |
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).