aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfncvt_x_f_w.h
blob: d6728bd16bbd7b5ef267648a1d6ee7b06282d106 (plain)
1
2
3
4
5
6
7
8
9
10
// vfncvt.x.f.v vd, vs2, vm
VI_CHECK_SDS(false);
if (P.VU.vsew == e32)
  require(p->supports_extension('D'));

VI_VFP_LOOP_BASE
  auto vs2 = P.VU.elt<float64_t>(rs2_num, i);
  P.VU.elt<int32_t>(rd_num, i, true) = f64_to_i32(vs2, STATE.frm, true);
  set_fp_exceptions;
VI_VFP_LOOP_END