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 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | Rm | 0 | 0 | 0 | 1 | 1 | 1 | Rn | Rd | ||||||||||||
| opc2 | |||||||||||||||||||||||||||||||
0x101110101xxxxx000111xxxxxxxxxx
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);
op : VBitOp = undefined;
match opc2 {
0b00 => {
op = VBitOp_VEOR
},
0b01 => {
op = VBitOp_VBSL
},
0b10 => {
op = VBitOp_VBIT
},
0b11 => {
op = VBitOp_VBIF
}
};
let op = op;
execute_aarch64_instrs_vector_arithmetic_binary_uniform_logical_bsl_eor(d, datasize, m, n, op)
CheckFPAdvSIMDEnabled64();
operand1 : bits('datasize) = undefined;
operand2 : bits('datasize) = undefined;
operand3 : bits('datasize) = undefined;
let operand4 : bits('datasize) = V_read(n, datasize);
match op {
VBitOp_VEOR => {
operand1 = V_read(m, datasize);
operand2 = Zeros(datasize);
operand3 = Ones(datasize)
},
VBitOp_VBSL => {
operand1 = V_read(m, datasize);
operand2 = operand1;
operand3 = V_read(d, datasize)
},
VBitOp_VBIT => {
operand1 = V_read(d, datasize);
operand2 = operand1;
operand3 = V_read(m, datasize)
},
VBitOp_VBIF => {
operand1 = V_read(d, datasize);
operand2 = operand1;
operand3 = not_vec(V_read(m, datasize))
}
};
let operand3 = operand3;
let operand2 = operand2;
let operand1 = operand1;
V_set(d, datasize) = EOR(operand1, EOR(operand2, operand4) & operand3)
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.