aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfwcvt_f_x_v.h
blob: 62cd8e8f547d6dfe2c5d9c37f28936f95c2edab3 (plain)
1
2
3
4
5
6
7
8
9
10
// vfwcvt.f.x.v vd, vs2, vm
VI_VFP_CVT_SCALE
({
  auto vs2 = P.VU.elt<int16_t>(rs2_num, i);
  P.VU.elt<float32_t>(rd_num, i, true) = i32_to_f32(vs2);
},
{
  auto vs2 = P.VU.elt<int32_t>(rs2_num, i);
  P.VU.elt<float64_t>(rd_num, i, true) = i32_to_f64(vs2);
}, true)