aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfncvt_f_x_w.h
blob: 25faa1e004515f9ab94b3dd629476e162b708f7e (plain)
1
2
3
4
5
6
7
8
9
10
// vfncvt.f.x.v vd, vs2, vm
VI_VFP_CVT_SCALE
({
  auto vs2 = P.VU.elt<int32_t>(rs2_num, i);
  P.VU.elt<float16_t>(rd_num, i, true) = i32_to_f16(vs2);
},
{
  auto vs2 = P.VU.elt<int64_t>(rs2_num, i);
  P.VU.elt<float32_t>(rd_num, i, true) = i64_to_f32(vs2);
}, false)