forked from pulp-platform/riscv-opcodes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopcodes-xpulppartmac_CUSTOM
More file actions
19 lines (17 loc) · 876 Bytes
/
Copy pathopcodes-xpulppartmac_CUSTOM
File metadata and controls
19 lines (17 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Xpulp extension subset: 16x16->32bit MAC (pseudo of macrnhi)
# 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
# remove '@' if xpulpmacrnhi is not in use
@p.macu rd rs1 rs2 31..30=0 29..25=0 14..12=1 6..2=0x16 1..0=3
@p.machhu rd rs1 rs2 31..30=1 29..25=0 14..12=1 6..2=0x16 1..0=3
@p.macs rd rs1 rs2 31..30=2 29..25=0 14..12=1 6..2=0x16 1..0=3
@p.machhs rd rs1 rs2 31..30=3 29..25=0 14..12=1 6..2=0x16 1..0=3