aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vle_v.h
blob: 3a4ddc973df1955dc6dffb0240ff849c5cd7ad93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// vle.v and vlseg[2-8]e.v
reg_t sew = P.VU.vsew;

if (sew == e8) {
  VI_LD(0, (i * nf + fn), int8, 1);
} else if (sew == e16) {
  VI_LD(0, (i * nf + fn), int16, 2);
} else if (sew == e32) {
  VI_LD(0, (i * nf + fn), int32, 4);
} else if (sew == e64) {
  VI_LD(0, (i * nf + fn), int64, 8);
}

VI_CHECK_1905