aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfwcvt_f_x_v.h
blob: 90978bc6caa47c41edf569c0e161a8ba841d9b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// vfwcvt.f.x.v vd, vs2, vm
VI_VFP_CVT_SCALE
({
  auto vs2 = P.VU.elt<int8_t>(rs2_num, i);
  P.VU.elt<float16_t>(rd_num, i, true) = i32_to_f16(vs2);
},
{
  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)