FMAXNMV (vector)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Vector reduce fp16 maxnm SIMD

313029282726252423222120191817161514131211109876543210
0Q00111000110000110010RnRd
o1

0x00111000110000110010xxxxxxxxxx

Decode Sail

if not_bool(HaveFP16Ext()) then {
    throw(Error_Undefined())
};
let 'd = UInt(Rd);
let 'n = UInt(Rn);
let 'esize = 16;
let 'datasize = if Q == 0b1 then 128 else 64;
let 'elements = DIV(datasize, esize);
let op : ReduceOp = if o1 == 0b1 then ReduceOp_FMINNUM else ReduceOp_FMAXNUM;
execute_aarch64_instrs_vector_reduce_fp16_maxnm_simd(d, datasize, esize, n, op)

Vector reduce FP maxnm SIMD

313029282726252423222120191817161514131211109876543210
0Q1011100sz110000110010RnRd
o1

0x1011100x110000110010xxxxxxxxxx

Decode Sail

let 'd = UInt(Rd);
let 'n = UInt(Rn);
if (sz @ Q) != 0b01 then {
    throw(Error_Undefined())
};
let 'esize = (32 << UInt(sz));
let 'datasize = if Q == 0b1 then 128 else 64;
let 'elements = DIV(datasize, esize);
let op : ReduceOp = if o1 == 0b1 then ReduceOp_FMINNUM else ReduceOp_FMAXNUM;
execute_aarch64_instrs_vector_reduce_fp16_maxnm_simd(d, datasize, esize, n, op)

Operation Sail

CheckFPAdvSIMDEnabled64();
let operand : bits('datasize) = V_read(n, datasize);
let altfp : bool = false;
V_set(d, esize) = Reduce__1(op, operand, esize, altfp)

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.