blob: 89591e4d4ff67237bb84482af3fe6c72831158e9 (
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
|
// vslideup.vi vd, vs2, rs1
require((insn.rs2() & (P.VU.vlmul - 1)) == 0);
require((insn.rd() & (P.VU.vlmul - 1)) == 0);
require(insn.rd() != insn.rs2());
if (insn.v_vm() == 0)
require(insn.rd() != 0);
const reg_t offset = insn.v_zimm5();
VI_LOOP_BASE
if (P.VU.vstart < offset && i < offset)
continue;
switch (sew) {
case e8: {
VI_XI_SLIDEUP_PARAMS(e8, offset);
vd = vs2;
}
break;
case e16: {
VI_XI_SLIDEUP_PARAMS(e16, offset);
vd = vs2;
}
break;
case e32: {
VI_XI_SLIDEUP_PARAMS(e32, offset);
vd = vs2;
}
break;
default: {
VI_XI_SLIDEUP_PARAMS(e64, offset);
vd = vs2;
}
break;
}
VI_LOOP_END
|