aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vslide1up_vx.h
blob: 256419eadb8babd2beeb4b8c5f02c817d249118b (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
//vslide1up.vx vd, vs2, rs1
VI_CHECK_SLIDE(true);

VI_LOOP_BASE
if (i != 0) {
  if (sew == e8) {
    VI_XI_SLIDEUP_PARAMS(e8, 1);
    vd = vs2;
  } else if (sew == e16) {
    VI_XI_SLIDEUP_PARAMS(e16, 1);
    vd = vs2;
  } else if (sew == e32) {
    VI_XI_SLIDEUP_PARAMS(e32, 1);
    vd = vs2;
  } else if (sew == e64) {
    VI_XI_SLIDEUP_PARAMS(e64, 1);
    vd = vs2;
  }
} else {
  if (sew == e8) {
    P.VU.elt<uint8_t>(rd_num, 0, true) = RS1;
  } else if (sew == e16) {
    P.VU.elt<uint16_t>(rd_num, 0, true) = RS1;
  } else if (sew == e32) {
    P.VU.elt<uint32_t>(rd_num, 0, true) = RS1;
  } else if (sew == e64) {
    P.VU.elt<uint64_t>(rd_num, 0, true) = RS1;
  }
}
VI_LOOP_END