blob: b2ae34570c2e1dd10eff9d982fe4445ce70e77c9 (
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
27
28
29
30
31
32
33
34
35
36
|
//vfslide1down.vf vd, vs2, rs1
VI_CHECK_SLIDE(false);
VI_VFP_LOOP_BASE
if (i != vl - 1) {
switch (P.VU.vsew) {
case e16: {
VI_XI_SLIDEDOWN_PARAMS(e16, 1);
vd = vs2;
}
break;
case e32: {
VI_XI_SLIDEDOWN_PARAMS(e32, 1);
vd = vs2;
}
break;
case e64: {
VI_XI_SLIDEDOWN_PARAMS(e64, 1);
vd = vs2;
}
break;
}
} else {
switch (P.VU.vsew) {
case e16:
P.VU.elt<float16_t>(rd_num, vl - 1) = f16(FRS1);
break;
case e32:
P.VU.elt<float32_t>(rd_num, vl - 1, true) = f32(FRS1);
break;
case e64:
P.VU.elt<float64_t>(rd_num, vl - 1, true) = f64(FRS1);
break;
}
}
VI_VFP_LOOP_END
|