fixed bit field field the encoding fixes should be
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 0 | 0 | 0 | 0 | 0 | imm5 | Rm | Rd | ||||||||
00000xxxxxxxxxxx
if ConditionPassed() then {
shift_n : int = undefined;
if imm5 == 0b00000 then {
throw(Error_See("MOV (register)"))
};
let 'd = UInt(Rd);
let 'm = UInt(Rm);
let setflags : bool = not_bool(InITBlock());
let (_, __tup_1 : int) = DecodeImmShift(0b00, imm5) in
{
shift_n = __tup_1
};
let 'shift_n = shift_n;
execute_aarch32_instrs_LSL_i_Op_A_txt(d, m, setflags, shift_n)
};
()
carry : bits(1) = undefined;
result : bits(32) = undefined;
(result, carry) = Shift_C(R_read(m), SRType_LSL, shift_n, PSTATE.C);
if d == 15 then {
ALUWritePC(result)
} else {
R_set(d) = result;
if setflags then {
PSTATE.N = [result[31]];
PSTATE.Z = IsZeroBit(result);
PSTATE.C = carry
};
()
}
Made from ScarletNX's Sail at 166ad3910f80. sail-arm's definitions are Arm's ASL in Sail (BSD 3-Clause Clear, license); ScarletNX's fixups are GPL-3.0-or-later.