GMI

Data processing (register)

fixed bit field field the encoding fixes should be

Integer tags mcinserttagmask

313029282726252423222120191817161514131211109876543210
10011010110Xm000101XnXd

10011010110xxxxx000101xxxxxxxxxx

Decode Sail

if not_bool(HaveMTEExt()) then {
    throw(Error_Undefined())
};
let 'd = UInt(Xd);
let 'n = UInt(Xn);
let 'm = UInt(Xm);
execute_aarch64_instrs_integer_tags_mcinserttagmask(d, m, n)

Operation Sail

let address : bits(64) = if n == 31 then SP_read() else X_read(n, 64);
X_set(d, 64) = X_read(m, 64) | LSL(ZeroExtend(0b1, 64), MOD(UInt(address[59 .. 56]), 64))

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.