blob: a08282f4c67594139c763eef717562859ba8a0ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// vfmv_s_f: vd[0] = rs1 (vs2=0)
require_vector;
require(insn.v_vm() == 1);
require_fp;
require_extension('F');
require(P.VU.vsew == e32);
reg_t vl = P.VU.vl;
if (vl > 0) {
reg_t rd_num = insn.rd();
reg_t sew = P.VU.vsew;
if (FLEN == 64)
P.VU.elt<uint32_t>(rd_num, 0) = f64(FRS1).v;
else
P.VU.elt<uint32_t>(rd_num, 0) = f32(FRS1).v;
if (TAIL_ZEROING) {
const reg_t max_len = P.VU.VLEN / sew;
for (reg_t i = 1; i < max_len; ++i) {
P.VU.elt<uint32_t>(rd_num, i) = 0;
}
}
vl = 0;
}
|