aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfncvt_x_f_w.h
blob: a7f3c33400ca279b94a5c43ad9417e2b80924fce (plain)
1
2
3
4
5
6
7
8
9
10
// vfncvt.x.f.w vd, vs2, vm
VI_VFP_NCVT_FP_TO_INT(
  { vd = f16_to_i8(vs2, softfloat_roundingMode, true); },  // BODY16
  { vd = f32_to_i16(vs2, softfloat_roundingMode, true); }, // BODY32
  { vd = f64_to_i32(vs2, softfloat_roundingMode, true); }, // BODY64
  { require_extension(EXT_ZFH); },                         // CHECK16
  { require(p->extension_enabled('F')); },                 // CHECK32
  { require(p->extension_enabled('D')); },                 // CHECK64
  int                                                      // sign
)