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 | 1 | 1 | 1 | 0 | 1 | 1 | ||||||||||||||||||||
| 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 |
| Rb | pred.not | pred | Ra | ||||||||||||||||||||||||||||
bits 63:48: 0101 1011 1011 ----
Runs execute_FSETP 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 | 1 | 1 | 1 | 0 | 1 | 1 | ||||||||||||||||||||
| 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 | |||||||||||||||||||||||||||||
bits 63:48: 0100 1011 1011 ----
Runs execute_FSETP 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 | 1 | 1 | 1 | 0 | 1 | 1 | |||||||||||||||||||||
| 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 | |||||||||||||||||||||||||||||
bits 63:48: 0011 011- 1011 ----
Runs execute_FSETP 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 |
|---|---|---|
| [56] | 56 | execute_FSETP |
| test | 51:48 | execute_FSETP |
| op_bool | 46:45 | execute_FSETP |
| right | 44 | execute_FSETP |
| left | 43 | execute_FSETP |
| pc | 42 | execute_FSETP |
| pc | 41:39 | execute_FSETP |
| [38:20] | 38:20 | execute_FSETP |
| Rb | 27:20 | RegB() |
| pred.not | 19 | the decoder |
| pred | 18:16 | the decoder |
| Ra | 15:8 | RegA() |
| left | 7 | execute_FSETP |
| right | 6 | execute_FSETP |
| [5:3] | 5:3 | execute_FSETP |
| [2:0] | 2:0 | execute_FSETP |
FSETP: a and b compared (48-51), combined with the predicate at 39 into the one at 3 and its negation into the one at 0; the immediate is the float of its 19 bits as the high ones
let f = Form();
let left = FloatMod(R_readF(RegA()), UInt(Field(7, 1)), UInt(Field(43, 1)));
let right0 = if f == 1 then CbufF()
else if f == 2 then FConst(UInt(Field(20, 19)) * 4096 + UInt(Field(56, 1)) * 2147483648)
else R_readF(RegB());
let right = FloatMod(right0, UInt(Field(44, 1)), UInt(Field(6, 1)));
let test = FCompare(UInt(Field(48, 4)), left, right);
let pc = PredRead(UInt(Field(39, 3)), UInt(Field(42, 1)));
let op_bool = UInt(Field(45, 2));
let yes = Combine53(op_bool, test, pc);
let inverse = RawNot(test);
let no = Combine53(op_bool, inverse, pc);
PredWrite(UInt(Field(3, 3)), yes);
PredWrite(UInt(Field(0, 3)), no)
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).