FCSEL (scalar)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Float move FP select

313029282726252423222120191817161514131211109876543210
00011110ftype1Rmcond11RnRd

00011110xx1xxxxxxxxx11xxxxxxxxxx

Decode Sail

let 'd = UInt(Rd);
let 'n = UInt(Rn);
let 'm = UInt(Rm);
datasize : {16, 32, 64} = 16;
match ftype {
  0b00 => {
      datasize = 32
  },
  0b01 => {
      datasize = 64
  },
  0b10 => {
      throw(Error_Undefined())
  },
  0b11 => {
      if HaveFP16Ext() then {
          datasize = 16
      } else {
          throw(Error_Undefined())
      }
  }
};
let 'datasize = datasize;
let condition : bits(4) = cond;
execute_aarch64_instrs_float_move_fp_select(condition, d, datasize, m, n)

Operation Sail

CheckFPEnabled64();
let result : bits('datasize) = if ConditionHolds(condition) then
  V_read(n, datasize)
else
  V_read(m, datasize);
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.