aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfwcvt_x_f_v.h
blob: 74497f4a400741d660e4b54b0238be365987df45 (plain)
1
2
3
4
5
6
7
8
9
10
// vfwcvt.x.f.v vd, vs2, vm
VI_VFP_WCVT_FP_TO_INT(
  {;},                                                     // BODY8
  { vd = f16_to_i32(vs2, softfloat_roundingMode, true); }, // BODY16
  { vd = f32_to_i64(vs2, softfloat_roundingMode, true); }, // BODY32
  {;},                                                     // CHECK8
  { require_extension(EXT_ZFH); },                         // CHECK16
  { require_extension('F'); },                             // CHECK32
  int                                                      // sign
)