forked from riscv/riscv-opcodes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opcodes-xpulpimg_CUSTOM
25 lines (24 loc) · 1.27 KB
/
opcodes-xpulpimg_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
# 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, imm20, imm12, imm12lo, imm12hi,
# shamtw, shamt, rm
# Xpulpimg extension
p.abs rd rs1 31..25=2 24..20=0 14..12=0 6..2=0x0C 1..0=3
p.slet rd rs1 rs2 31..25=2 14..12=2 6..2=0x0C 1..0=3
p.sletu rd rs1 rs2 31..25=2 14..12=3 6..2=0x0C 1..0=3
p.min rd rs1 rs2 31..25=2 14..12=4 6..2=0x0C 1..0=3
p.minu rd rs1 rs2 31..25=2 14..12=5 6..2=0x0C 1..0=3
p.max rd rs1 rs2 31..25=2 14..12=6 6..2=0x0C 1..0=3
p.maxu rd rs1 rs2 31..25=2 14..12=7 6..2=0x0C 1..0=3
p.exths rd rs1 31..25=8 24..20=0 14..12=4 6..2=0x0C 1..0=3
p.exthz rd rs1 31..25=8 24..20=0 14..12=5 6..2=0x0C 1..0=3
p.extbs rd rs1 31..25=8 24..20=0 14..12=6 6..2=0x0C 1..0=3
p.extbz rd rs1 31..25=8 24..20=0 14..12=7 6..2=0x0C 1..0=3
p.clip rd rs1 imm5 31..25=10 14..12=1 6..2=0x0C 1..0=3
p.clipu rd rs1 imm5 31..25=10 14..12=2 6..2=0x0C 1..0=3
p.clipr rd rs1 rs2 31..25=10 14..12=5 6..2=0x0C 1..0=3
p.clipur rd rs1 rs2 31..25=10 14..12=6 6..2=0x0C 1..0=3