Data processing (scalar floating-point and Advanced SIMD)
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 |
| 0 | Q | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | Rm | 0 | 0 | 0 | 1 | 1 | 1 | Rn | Rd | ||||||||||||
| size | |||||||||||||||||||||||||||||||
0x001110011xxxxx000111xxxxxxxxxx
let 'd = UInt(Rd); let 'n = UInt(Rn); let 'm = UInt(Rm); let 'esize = 8; let 'datasize = if Q == 0b1 then 128 else 64; let 'elements = DIV(datasize, esize); let invert : bool = [size[0]] == 0b1; let op : LogicalOp = if [size[1]] == 0b1 then LogicalOp_ORR else LogicalOp_AND; execute_aarch64_instrs_vector_arithmetic_binary_uniform_logical_and_orr(d, datasize, invert, m, n, op)
CheckFPAdvSIMDEnabled64();
let operand1 : bits('datasize) = V_read(n, datasize);
operand2 : bits('datasize) = V_read(m, datasize);
result : bits('datasize) = undefined;
if invert then {
operand2 = not_vec(operand2)
};
match op {
LogicalOp_AND => {
result = operand1 & operand2
},
LogicalOp_ORR => {
result = operand1 | operand2
},
_ => ()
};
V_set(d, datasize) = 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.