URECPE (vector)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Vector arithmetic unary special recip int

313029282726252423222120191817161514131211109876543210
0Q0011101sz100001110010RnRd

0x0011101x100001110010xxxxxxxxxx

Decode Sail

let 'd = UInt(Rd);
let 'n = UInt(Rn);
if sz == 0b1 then {
    throw(Error_Undefined())
};
let 'esize = 32;
let 'datasize = if Q == 0b1 then 128 else 64;
let 'elements = DIV(datasize, esize);
execute_aarch64_instrs_vector_arithmetic_unary_special_recip_int(d, datasize, elements, n)

Operation Sail

CheckFPAdvSIMDEnabled64();
let operand : bits('datasize) = V_read(n, datasize);
result : bits('datasize) = undefined;
element : bits(32) = undefined;
foreach (e from 0 to (elements - 1) by 1 in inc) {
    element = Elem_read(operand, e, 32);
    result = Elem_set(result, e, 32, UnsignedRecipEstimate(element))
};
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.