XAFLAG

Branches, exception generating and system instructions

fixed bit field field the encoding fixes should be

Integer flags xaflag

313029282726252423222120191817161514131211109876543210
11010101000000000100000000111111
CRm

11010101000000000100000000111111

Decode Sail

if not_bool(HaveFlagFormatExt()) then {
    throw(Error_Undefined())
};
execute_aarch64_instrs_integer_flags_xaflag()

Operation Sail

let n : bits(1) = not_vec(PSTATE.C) & not_vec(PSTATE.Z);
let z : bits(1) = PSTATE.Z & PSTATE.C;
let c : bits(1) = PSTATE.C | PSTATE.Z;
let v : bits(1) = not_vec(PSTATE.C) & PSTATE.Z;
PSTATE.N = n;
PSTATE.Z = z;
PSTATE.C = c;
PSTATE.V = v

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.