forked from riscv/riscv-opcodes
-
Notifications
You must be signed in to change notification settings - Fork 7
/
opcodes-rv32b_CUSTOM
88 lines (73 loc) · 3.94 KB
/
opcodes-rv32b_CUSTOM
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# RV32B: bit manipulation
# format of a line in this file:
# <instruction name> <args> <opcode>
#
# <opcode> is given by specifying one or more range/value pairs:
# hi..lo=value or bit=value or arg=value (e.g. 6..2=0x45 10=1 rd=0)
#
# <args> is one of rd, rs1, rs2, rs3, aqrl, fm, pred, succ, rm,
# funct3, imm20, jimm20, imm12, imm12hi, bimm12hi, imm12lo,
# bimm12lo, zimm, shamt, shamtw, imm5, imm6, vd, vs3, vs1, vs2,
# vm, wd, amoop, nf, simm5, zimm11, prs3, L, uimms, Luimm5,
# vseglen, stagger_max, stagger_mask
# INFO: overlaps with opcodes-xpulpminmax_CUSTOM, opcodes-xpulpbitop_CUSTOM,
# opcodes-xpulpbitopsmall_CUSTOM
# RV32B
andn rd rs1 rs2 31..25=32 14..12=7 6..2=0x0C 1..0=3
orn rd rs1 rs2 31..25=32 14..12=6 6..2=0x0C 1..0=3
xnor rd rs1 rs2 31..25=32 14..12=4 6..2=0x0C 1..0=3
slo rd rs1 rs2 31..25=16 14..12=1 6..2=0x0C 1..0=3
sro rd rs1 rs2 31..25=16 14..12=5 6..2=0x0C 1..0=3
rol rd rs1 rs2 31..25=48 14..12=1 6..2=0x0C 1..0=3
ror rd rs1 rs2 31..25=48 14..12=5 6..2=0x0C 1..0=3
sbclr rd rs1 rs2 31..25=36 14..12=1 6..2=0x0C 1..0=3
sbset rd rs1 rs2 31..25=20 14..12=1 6..2=0x0C 1..0=3
sbinv rd rs1 rs2 31..25=52 14..12=1 6..2=0x0C 1..0=3
sbext rd rs1 rs2 31..25=36 14..12=5 6..2=0x0C 1..0=3
gorc rd rs1 rs2 31..25=20 14..12=5 6..2=0x0C 1..0=3
grev rd rs1 rs2 31..25=52 14..12=5 6..2=0x0C 1..0=3
sloi rd rs1 31..26=8 shamt 14..12=1 6..2=0x04 1..0=3
sroi rd rs1 31..26=8 shamt 14..12=5 6..2=0x04 1..0=3
rori rd rs1 31..26=24 shamt 14..12=5 6..2=0x04 1..0=3
sbclri rd rs1 31..26=18 shamt 14..12=1 6..2=0x04 1..0=3
sbseti rd rs1 31..26=10 shamt 14..12=1 6..2=0x04 1..0=3
sbinvi rd rs1 31..26=26 shamt 14..12=1 6..2=0x04 1..0=3
sbexti rd rs1 31..26=18 shamt 14..12=5 6..2=0x04 1..0=3
gorci rd rs1 31..26=10 shamt 14..12=5 6..2=0x04 1..0=3
grevi rd rs1 31..26=26 shamt 14..12=5 6..2=0x04 1..0=3
cmix rd rs1 rs2 rs3 26..25=3 14..12=1 6..2=0x0C 1..0=3
cmov rd rs1 rs2 rs3 26..25=3 14..12=5 6..2=0x0C 1..0=3
fsl rd rs1 rs2 rs3 26..25=2 14..12=1 6..2=0x0C 1..0=3
fsr rd rs1 rs2 rs3 26..25=2 14..12=5 6..2=0x0C 1..0=3
fsri rd rs1 shamt rs3 26=1 14..12=5 6..2=0x04 1..0=3
clz rd rs1 31..20=0x600 14..12=1 6..2=0x04 1..0=3
ctz rd rs1 31..20=0x601 14..12=1 6..2=0x04 1..0=3
pcnt rd rs1 31..20=0x602 14..12=1 6..2=0x04 1..0=3
sext.b rd rs1 31..20=0x604 14..12=1 6..2=0x04 1..0=3
sext.h rd rs1 31..20=0x605 14..12=1 6..2=0x04 1..0=3
crc32.b rd rs1 31..20=0x610 14..12=1 6..2=0x04 1..0=3
crc32.h rd rs1 31..20=0x611 14..12=1 6..2=0x04 1..0=3
crc32.w rd rs1 31..20=0x612 14..12=1 6..2=0x04 1..0=3
crc32c.b rd rs1 31..20=0x618 14..12=1 6..2=0x04 1..0=3
crc32c.h rd rs1 31..20=0x619 14..12=1 6..2=0x04 1..0=3
crc32c.w rd rs1 31..20=0x61A 14..12=1 6..2=0x04 1..0=3
sh1add rd rs1 rs2 31..25=16 14..12=2 6..2=0x0C 1..0=3
sh2add rd rs1 rs2 31..25=16 14..12=4 6..2=0x0C 1..0=3
sh3add rd rs1 rs2 31..25=16 14..12=6 6..2=0x0C 1..0=3
clmul rd rs1 rs2 31..25=5 14..12=1 6..2=0x0C 1..0=3
clmulr rd rs1 rs2 31..25=5 14..12=2 6..2=0x0C 1..0=3
clmulh rd rs1 rs2 31..25=5 14..12=3 6..2=0x0C 1..0=3
min rd rs1 rs2 31..25=5 14..12=4 6..2=0x0C 1..0=3
max rd rs1 rs2 31..25=5 14..12=5 6..2=0x0C 1..0=3
minu rd rs1 rs2 31..25=5 14..12=6 6..2=0x0C 1..0=3
maxu rd rs1 rs2 31..25=5 14..12=7 6..2=0x0C 1..0=3
shfl rd rs1 rs2 31..25=4 14..12=1 6..2=0x0C 1..0=3
unshfl rd rs1 rs2 31..25=4 14..12=5 6..2=0x0C 1..0=3
bext rd rs1 rs2 31..25=4 14..12=6 6..2=0x0C 1..0=3
bdep rd rs1 rs2 31..25=36 14..12=6 6..2=0x0C 1..0=3
pack rd rs1 rs2 31..25=4 14..12=4 6..2=0x0C 1..0=3
packu rd rs1 rs2 31..25=36 14..12=4 6..2=0x0C 1..0=3
packh rd rs1 rs2 31..25=4 14..12=7 6..2=0x0C 1..0=3
bfp rd rs1 rs2 31..25=36 14..12=7 6..2=0x0C 1..0=3
shfli rd rs1 31..25=4 shamtw 14..12=1 6..2=0x04 1..0=3
unshfli rd rs1 31..25=4 shamtw 14..12=5 6..2=0x04 1..0=3