fixed bit field field the encoding fixes should be
| 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 |
| 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | Rm | 0 | 0 | 1 | 1 | 0 | 0 | Rn | Rd | ||||||||||||
10011010110xxxxx001100xxxxxxxxxx
source_is_sp : bool = false;
let 'd = UInt(Rd);
let 'n = UInt(Rn);
let 'm = UInt(Rm);
if not_bool(HavePACExt()) then {
throw(Error_Undefined())
};
if m == 31 then {
source_is_sp = true
};
execute_aarch64_instrs_integer_pac_pacga_dp_2src(d, m, n, source_is_sp)
if source_is_sp then {
X_set(d, 64) = AddPACGA(X_read(n, 64), SP_read())
} else {
X_set(d, 64) = AddPACGA(X_read(n, 64), X_read(m, 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.