REV16

T32: 16-bit instructions

fixed bit field field the encoding fixes should be

T1

1514131211109876543210
1011101001RmRd

1011101001xxxxxx

Decode Sail

if ConditionPassed() then {
    let 'd = UInt(Rd);
    let 'm = UInt(Rm);
    execute_aarch32_instrs_REV16_Op_A_txt(d, m)
};
()

Operation Sail

result : bits(32) = undefined;
result[31 .. 24] = R_read(m)[23 .. 16];
result[23 .. 16] = R_read(m)[31 .. 24];
result[15 .. 8] = R_read(m)[7 .. 0];
result[7 .. 0] = R_read(m)[15 .. 8];
R_set(d) = result

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.