Integer, logic, video and predicate instructions
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 |
| 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | [47] | test | value | pc | pc | pb | |||||||||||||
| 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 |
| pb | test | pred.not | pred | pa | pa | Rd | |||||||||||||||||||||||||
bits 63:48: 0101 0000 1000 1---
Runs execute_PSET with Form() 0.
| Field | Bits | From |
|---|---|---|
| [47] | 47 | execute_PSET |
| test | 46:45 | execute_PSET |
| value | 44 | execute_PSET |
| pc | 42 | execute_PSET |
| pc | 41:39 | execute_PSET |
| pb | 32 | execute_PSET |
| pb | 31:29 | execute_PSET |
| test | 25:24 | execute_PSET |
| pred.not | 19 | the decoder |
| pred | 18:16 | the decoder |
| pa | 15 | execute_PSET |
| pa | 14:12 | execute_PSET |
| Rd | 7:0 | Dst() |
PSET: 1.0 (44) or all ones where the predicates' combination holds, else 0; .CC the flags
let pa = PredRead(UInt(Field(12, 3)), UInt(Field(15, 1))); let pb = PredRead(UInt(Field(29, 3)), UInt(Field(32, 1))); let pc = PredRead(UInt(Field(39, 3)), UInt(Field(42, 1))); let test = Combine53(UInt(Field(45, 2)), Combine53(UInt(Field(24, 2)), pa, pb), pc); let value = RawSelect(test, if Field(44, 1) == 0b1 then 0x3f800000 else 0xffffffff, 0x00000000); if Field(47, 1) == 0b1 then FlagsLogic(value); R_write(Dst(), value)
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).