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 | 1 | 0 | 0 | 1 | 0 | |||||||||||||||||||||||
| 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 |
| pred.not | pred | Ra | Rd | ||||||||||||||||||||||||||||
bits 63:48: 0101 1001 0--- ----
Runs execute_DSET with Form() 0.
| 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 | 0 | 1 | 0 | 0 | 1 | 0 | |||||||||||||||||||||||
| 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 |
| pred.not | pred | Ra | Rd | ||||||||||||||||||||||||||||
bits 63:48: 0100 1001 0--- ----
Runs execute_DSET with Form() 1.
| 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 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | ||||||||||||||||||||||||
| 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 |
| pred.not | pred | Ra | Rd | ||||||||||||||||||||||||||||
bits 63:48: 0011 001- 0--- ----
Runs execute_DSET with Form() 2.
The operation reads some of these fields in some forms alone (it chooses by Form()), so the diagrams show only the decoder's.
| Field | Bits | From |
|---|---|---|
| left | 54 | execute_DSET |
| [53] | 53 | execute_DSET |
| truth | 52 | execute_DSET |
| comparison | 51:48 | execute_DSET |
| [47] | 47 | execute_DSET |
| test | 46:45 | execute_DSET |
| right | 44 | execute_DSET |
| left | 43 | execute_DSET |
| predicate | 42 | execute_DSET |
| predicate | 41:39 | execute_DSET |
| pred.not | 19 | the decoder |
| pred | 18:16 | the decoder |
| Ra | 15:8 | RegA() |
| Rd | 7:0 | Dst() |
| left | 7 | execute_DSET |
| [6] | 6 | execute_DSET |
| [5:3] | 5:3 | execute_DSET |
| [2:0] | 2:0 | execute_DSET |
DSET and DSETP: doubles compared, as FSET and FSETP
let is_set = Form() <= 2;
let left = DoubleMod(DoubleRead(RegA()), if is_set then UInt(Field(54, 1)) else UInt(Field(7, 1)), UInt(Field(43, 1)));
let right = DoubleMod(DoubleSource(if is_set then Form() else Form() - 3), UInt(Field(44, 1)),
if is_set then UInt(Field(53, 1)) else UInt(Field(6, 1)));
let comparison = DCompare(UInt(Field(48, 4)), left, right);
let predicate = PredRead(UInt(Field(39, 3)), UInt(Field(42, 1)));
if is_set then {
let test = Combine53(UInt(Field(45, 2)), comparison, predicate);
let truth = Bits32(if Field(52, 1) == 0b1 then 0x3f800000 else 0xffffffff);
let value = RawSelect(test, truth, 0x00000000);
if Field(47, 1) == 0b1 then FlagsLogic(value);
R_write(Dst(), value)
} else {
let inverse = RawNot(comparison);
PredWrite(UInt(Field(3, 3)), Combine53(UInt(Field(45, 2)), comparison, predicate));
PredWrite(UInt(Field(0, 3)), Combine53(UInt(Field(45, 2)), inverse, predicate))
}
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).