Skip to content

Commit 55da87b

Browse files
committed
auto generate test params
1 parent adbdbcc commit 55da87b

File tree

4 files changed

+509
-273
lines changed

4 files changed

+509
-273
lines changed

src/machine/instruction.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,18 @@ class Instruction {
199199
static void append_recognized_registers(QStringList &list);
200200
static constexpr uint64_t modify_pseudoinst_imm(Modifier mod, uint64_t value);
201201

202-
private:
202+
protected:
203203
uint32_t dt;
204+
inline int32_t extend(uint32_t value, uint32_t used_bits) const;
205+
206+
private:
204207
static bool symbolic_registers_enabled;
205208

206209
static Instruction base_from_tokens(
207210
const TokenizedInstruction &inst,
208211
RelocExpressionList *reloc,
209212
Modifier pseudo_mod = Modifier::NONE,
210213
uint64_t initial_immediate_value = 0);
211-
inline int32_t extend(uint32_t value, uint32_t used_bits) const;
212214
static uint32_t parse_field(
213215
QString &field_token,
214216
const QString &arg,

src/machine/instruction.test.data.def

Lines changed: 185 additions & 185 deletions
Original file line numberDiff line numberDiff line change
@@ -1,192 +1,192 @@
1-
{0x108083, "lb x1, 1(x1)"},
2-
{0x109083, "lh x1, 1(x1)"},
3-
{0x10a083, "lw x1, 1(x1)"},
4-
{0x10b083, "ld x1, 1(x1)"},
5-
{0x10c083, "lbu x1, 1(x1)"},
6-
{0x10d083, "lhu x1, 1(x1)"},
7-
{0x10e083, "lwu x1, 1(x1)"},
1+
{0x40978003, "lb x0, 1033(x15)"},
2+
{0x25011d83, "lh x27, 592(x2)"},
3+
{0xed702f83, "lw x31, -297(x0)"},
4+
{0x29883d03, "ld x26, 664(x16)"},
5+
{0xdf624703, "lbu x14, -522(x4)"},
6+
{0x28d6db83, "lhu x23, 653(x13)"},
7+
{0x6c306803, "lwu x16, 1731(x0)"},
88
{0xf, "fence"},
99
{0x100f, "fence.i"},
10-
{0x8093, "addi x1, x1, 0", "mv x1, x1"},
11-
{0x108093, "addi x1, x1, 1"},
12-
{0x109093, "slli x1, x1, 0x1"},
13-
{0x10a093, "slti x1, x1, 1"},
14-
{0x10b093, "sltiu x1, x1, 1", "seqz x1, x1"},
15-
{0x10b093, "sltiu x1, x1, 1"},
16-
{0xfff0c093, "xori x1, x1, -1", "not x1, x1"},
17-
{0x10c093, "xori x1, x1, 1"},
18-
{0x10d093, "srli x1, x1, 0x1"},
19-
{0x4010d093, "srai x1, x1, 0x1"},
20-
{0x10e093, "ori x1, x1, 1"},
21-
{0xff0f093, "andi x1, x1, 255", "zext.b x1, x1"},
22-
{0x10f093, "andi x1, x1, 1"},
23-
{0x1097, "auipc x1, 0x1"},
24-
{0x809b, "addiw x1, x1, 0", "sext.w x1, x1"},
25-
{0x10809b, "addiw x1, x1, 1"},
26-
{0x10909b, "slliw x1, x1, 0x1"},
27-
{0x10d09b, "srliw x1, x1, 0x1"},
28-
{0x4010d09b, "sraiw x1, x1, 0x1"},
29-
{0x1080a3, "sb x1, 1(x1)"},
30-
{0x1090a3, "sh x1, 1(x1)"},
31-
{0x10a0a3, "sw x1, 1(x1)"},
32-
{0x10b0a3, "sd x1, 1(x1)"},
33-
{0x10a0af, "amoadd.w x1, x1, (x1)"},
34-
{0x210a0af, "amoadd.w.rl x1, x1, (x1)"},
35-
{0x410a0af, "amoadd.w.aq x1, x1, (x1)"},
36-
{0x610a0af, "amoadd.w.aqrl x1, x1, (x1)"},
37-
{0x810a0af, "amoswap.w x1, x1, (x1)"},
38-
{0xa10a0af, "amoswap.w.rl x1, x1, (x1)"},
39-
{0xc10a0af, "amoswap.w.aq x1, x1, (x1)"},
40-
{0xe10a0af, "amoswap.w.aqrl x1, x1, (x1)"},
41-
{0x1000a0af, "lr.w x1, (x1)"},
42-
{0x1200a0af, "lr.w.rl x1, (x1)"},
43-
{0x1400a0af, "lr.w.aq x1, (x1)"},
44-
{0x1600a0af, "lr.w.aqrl x1, (x1)"},
45-
{0x1810a0af, "sc.w x1, x1, (x1)"},
46-
{0x1a10a0af, "sc.w.rl x1, x1, (x1)"},
47-
{0x1c10a0af, "sc.w.aq x1, x1, (x1)"},
48-
{0x1e10a0af, "sc.w.aqrl x1, x1, (x1)"},
49-
{0x2010a0af, "amoxor.w x1, x1, (x1)"},
50-
{0x2210a0af, "amoxor.w.rl x1, x1, (x1)"},
51-
{0x2410a0af, "amoxor.w.aq x1, x1, (x1)"},
52-
{0x2610a0af, "amoxor.w.aqrl x1, x1, (x1)"},
53-
{0x4010a0af, "amoor.w x1, x1, (x1)"},
54-
{0x4210a0af, "amoor.w.rl x1, x1, (x1)"},
55-
{0x4410a0af, "amoor.w.aq x1, x1, (x1)"},
56-
{0x4610a0af, "amoor.w.aqrl x1, x1, (x1)"},
57-
{0x6010a0af, "amoand.w x1, x1, (x1)"},
58-
{0x6210a0af, "amoand.w.rl x1, x1, (x1)"},
59-
{0x6410a0af, "amoand.w.aq x1, x1, (x1)"},
60-
{0x6610a0af, "amoand.w.aqrl x1, x1, (x1)"},
61-
{0x8010a0af, "amomin.w x1, x1, (x1)"},
62-
{0x8210a0af, "amomin.w.rl x1, x1, (x1)"},
63-
{0x8410a0af, "amomin.w.aq x1, x1, (x1)"},
64-
{0x8610a0af, "amomin.w.aqrl x1, x1, (x1)"},
65-
{0xa010a0af, "amomax.w x1, x1, (x1)"},
66-
{0xa210a0af, "amomax.w.rl x1, x1, (x1)"},
67-
{0xa410a0af, "amomax.w.aq x1, x1, (x1)"},
68-
{0xa610a0af, "amomax.w.aqrl x1, x1, (x1)"},
69-
{0xc010a0af, "amominu.w x1, x1, (x1)"},
70-
{0xc210a0af, "amominu.w.rl x1, x1, (x1)"},
71-
{0xc410a0af, "amominu.w.aq x1, x1, (x1)"},
72-
{0xc610a0af, "amominu.w.aqrl x1, x1, (x1)"},
73-
{0xe010a0af, "amomaxu.w x1, x1, (x1)"},
74-
{0xe210a0af, "amomaxu.w.rl x1, x1, (x1)"},
75-
{0xe410a0af, "amomaxu.w.aq x1, x1, (x1)"},
76-
{0xe610a0af, "amomaxu.w.aqrl x1, x1, (x1)"},
77-
{0x10b0af, "amoadd.d x1, x1, (x1)"},
78-
{0x210b0af, "amoadd.d.rl x1, x1, (x1)"},
79-
{0x410b0af, "amoadd.d.aq x1, x1, (x1)"},
80-
{0x610b0af, "amoadd.d.aqrl x1, x1, (x1)"},
81-
{0x810b0af, "amoswap.d x1, x1, (x1)"},
82-
{0xa10b0af, "amoswap.d.rl x1, x1, (x1)"},
83-
{0xc10b0af, "amoswap.d.aq x1, x1, (x1)"},
84-
{0xe10b0af, "amoswap.d.aqrl x1, x1, (x1)"},
85-
{0x1000b0af, "lr.d x1, (x1)"},
86-
{0x1200b0af, "lr.d.rl x1, (x1)"},
87-
{0x1400b0af, "lr.d.aq x1, (x1)"},
88-
{0x1600b0af, "lr.d.aqrl x1, (x1)"},
89-
{0x1810b0af, "sc.d x1, x1, (x1)"},
90-
{0x1a10b0af, "sc.d.rl x1, x1, (x1)"},
91-
{0x1c10b0af, "sc.d.aq x1, x1, (x1)"},
92-
{0x1e10b0af, "sc.d.aqrl x1, x1, (x1)"},
93-
{0x2010b0af, "amoxor.d x1, x1, (x1)"},
94-
{0x2210b0af, "amoxor.d.rl x1, x1, (x1)"},
95-
{0x2410b0af, "amoxor.d.aq x1, x1, (x1)"},
96-
{0x2610b0af, "amoxor.d.aqrl x1, x1, (x1)"},
97-
{0x4010b0af, "amoor.d x1, x1, (x1)"},
98-
{0x4210b0af, "amoor.d.rl x1, x1, (x1)"},
99-
{0x4410b0af, "amoor.d.aq x1, x1, (x1)"},
100-
{0x4610b0af, "amoor.d.aqrl x1, x1, (x1)"},
101-
{0x6010b0af, "amoand.d x1, x1, (x1)"},
102-
{0x6210b0af, "amoand.d.rl x1, x1, (x1)"},
103-
{0x6410b0af, "amoand.d.aq x1, x1, (x1)"},
104-
{0x6610b0af, "amoand.d.aqrl x1, x1, (x1)"},
105-
{0x8010b0af, "amomin.d x1, x1, (x1)"},
106-
{0x8210b0af, "amomin.d.rl x1, x1, (x1)"},
107-
{0x8410b0af, "amomin.d.aq x1, x1, (x1)"},
108-
{0x8610b0af, "amomin.d.aqrl x1, x1, (x1)"},
109-
{0xa010b0af, "amomax.d x1, x1, (x1)"},
110-
{0xa210b0af, "amomax.d.rl x1, x1, (x1)"},
111-
{0xa410b0af, "amomax.d.aq x1, x1, (x1)"},
112-
{0xa610b0af, "amomax.d.aqrl x1, x1, (x1)"},
113-
{0xc010b0af, "amominu.d x1, x1, (x1)"},
114-
{0xc210b0af, "amominu.d.rl x1, x1, (x1)"},
115-
{0xc410b0af, "amominu.d.aq x1, x1, (x1)"},
116-
{0xc610b0af, "amominu.d.aqrl x1, x1, (x1)"},
117-
{0xe010b0af, "amomaxu.d x1, x1, (x1)"},
118-
{0xe210b0af, "amomaxu.d.rl x1, x1, (x1)"},
119-
{0xe410b0af, "amomaxu.d.aq x1, x1, (x1)"},
120-
{0xe610b0af, "amomaxu.d.aqrl x1, x1, (x1)"},
121-
{0x1080b3, "add x1, x1, x1"},
122-
{0x401000b3, "sub x1, x0, x1", "neg x1, x1"},
123-
{0x401080b3, "sub x1, x1, x1"},
124-
{0x1090b3, "sll x1, x1, x1"},
125-
{0xa0b3, "slt x1, x1, x0", "sltz x1, x1"},
126-
{0x1020b3, "slt x1, x0, x1", "sgtz x1, x1"},
127-
{0x10a0b3, "slt x1, x1, x1"},
128-
{0x1030b3, "sltu x1, x0, x1", "snez x1, x1"},
129-
{0x10b0b3, "sltu x1, x1, x1"},
130-
{0x10c0b3, "xor x1, x1, x1"},
131-
{0x10d0b3, "srl x1, x1, x1"},
132-
{0x4010d0b3, "sra x1, x1, x1"},
133-
{0x10e0b3, "or x1, x1, x1"},
134-
{0x10f0b3, "and x1, x1, x1"},
135-
{0x21080b3, "mul x1, x1, x1"},
136-
{0x21090b3, "mulh x1, x1, x1"},
137-
{0x210a0b3, "mulhsu x1, x1, x1"},
138-
{0x210b0b3, "mulhu x1, x1, x1"},
139-
{0x210c0b3, "div x1, x1, x1"},
140-
{0x210d0b3, "divu x1, x1, x1"},
141-
{0x210e0b3, "rem x1, x1, x1"},
142-
{0x210f0b3, "remu x1, x1, x1"},
143-
{0x10b7, "lui x1, 0x1"},
144-
{0x1080bb, "addw x1, x1, x1"},
145-
{0x401000bb, "subw x1, x0, x1", "negw x1, x1"},
146-
{0x401080bb, "subw x1, x1, x1"},
147-
{0x1090bb, "sllw x1, x1, x1"},
148-
{0x10d0bb, "srlw x1, x1, x1"},
149-
{0x4010d0bb, "sraw x1, x1, x1"},
150-
{0x21080bb, "mulw x1, x1, x1"},
151-
{0x210c0bb, "divw x1, x1, x1"},
152-
{0x210d0bb, "divuw x1, x1, x1"},
153-
{0x210e0bb, "remw x1, x1, x1"},
154-
{0x210f0bb, "remuw x1, x1, x1"},
155-
{0x8163, "beq x1, x0, 0x2", "beqz x1, 0x2"},
156-
{0x108163, "beq x1, x1, 0x2"},
157-
{0x9163, "bne x1, x0, 0x2", "bnez x1, 0x2"},
158-
{0x109163, "bne x1, x1, 0x2"},
159-
{0xc163, "blt x1, x0, 0x2", "bltz x1, 0x2"},
160-
{0x104163, "blt x0, x1, 0x2", "bgtz x1, 0x2"},
161-
{0x10c163, "blt x1, x1, 0x2", "bgt x1, x1, 0x2"},
162-
{0x10c163, "blt x1, x1, 0x2"},
163-
{0xd163, "bge x1, x0, 0x2", "bgez x1, 0x2"},
164-
{0x10d163, "bge x1, x1, 0x2", "ble x1, x1, 0x2"},
165-
{0x105163, "bge x0, x1, 0x2", "blez x1, 0x2"},
166-
{0x10d163, "bge x1, x1, 0x2"},
167-
{0x10e163, "bltu x1, x1, 0x2", "bgtu x1, x1, 0x2"},
168-
{0x10e163, "bltu x1, x1, 0x2"},
169-
{0x10f163, "bgeu x1, x1, 0x2", "bleu x1, x1, 0x2"},
170-
{0x10f163, "bgeu x1, x1, 0x2"},
10+
{0x68393, "addi x7, x13, 0", "mv x7, x13"},
11+
{0x765a0313, "addi x6, x20, 1893"},
12+
{0xb01413, "slli x8, x0, 0xb"},
13+
{0xa2ad2e13, "slti x28, x26, -1494"},
14+
{0x133593, "sltiu x11, x6, 1", "seqz x11, x6"},
15+
{0x8a7e3e93, "sltiu x29, x28, -1881"},
16+
{0xfff44a13, "xori x20, x8, -1", "not x20, x8"},
17+
{0x4e8a4d93, "xori x27, x20, 1256"},
18+
{0x170d293, "srli x5, x1, 0x17"},
19+
{0x41ea5b93, "srai x23, x20, 0x1e"},
20+
{0xb25dee93, "ori x29, x27, -1243"},
21+
{0xff67513, "andi x10, x12, 255", "zext.b x10, x12"},
22+
{0xeecd7193, "andi x3, x26, -276"},
23+
{0x7c660497, "auipc x9, 0x7c660"},
24+
{0x3809b, "addiw x1, x7, 0", "sext.w x1, x7"},
25+
{0x58c5021b, "addiw x4, x10, 1420"},
26+
{0x421e9b, "slliw x29, x4, 0x4"},
27+
{0x9a509b, "srliw x1, x20, 0x9"},
28+
{0x41e0d79b, "sraiw x15, x1, 0x1e"},
29+
{0xb4218823, "sb x2, -1200(x3)"},
30+
{0x97639b23, "sh x22, -1674(x7)"},
31+
{0xce52aea3, "sw x5, -771(x5)"},
32+
{0x862f31a3, "sd x2, -1949(x30)"},
33+
{0x6c23af, "amoadd.w x7, x6, (x24)"},
34+
{0x313afaf, "amoadd.w.rl x31, x17, (x7)"},
35+
{0x4a22f2f, "amoadd.w.aq x30, x10, (x4)"},
36+
{0x66aac2f, "amoadd.w.aqrl x24, x6, (x21)"},
37+
{0x9f6222f, "amoswap.w x4, x31, (x12)"},
38+
{0xa5026af, "amoswap.w.rl x13, x5, (x0)"},
39+
{0xdbca5af, "amoswap.w.aq x11, x27, (x25)"},
40+
{0xf32a9af, "amoswap.w.aqrl x19, x19, (x5)"},
41+
{0x10032a2f, "lr.w x20, (x6)"},
42+
{0x12002a2f, "lr.w.rl x20, (x0)"},
43+
{0x1403a1af, "lr.w.aq x3, (x7)"},
44+
{0x160e24af, "lr.w.aqrl x9, (x28)"},
45+
{0x19d3a92f, "sc.w x18, x29, (x7)"},
46+
{0x1b7d26af, "sc.w.rl x13, x23, (x26)"},
47+
{0x1c0f23af, "sc.w.aq x7, x0, (x30)"},
48+
{0x1f242aaf, "sc.w.aqrl x21, x18, (x8)"},
49+
{0x218a20af, "amoxor.w x1, x24, (x20)"},
50+
{0x237f28af, "amoxor.w.rl x17, x23, (x30)"},
51+
{0x2592a92f, "amoxor.w.aq x18, x25, (x5)"},
52+
{0x276cab2f, "amoxor.w.aqrl x22, x22, (x25)"},
53+
{0x4138ab2f, "amoor.w x22, x19, (x17)"},
54+
{0x438120af, "amoor.w.rl x1, x24, (x2)"},
55+
{0x44adabaf, "amoor.w.aq x23, x10, (x27)"},
56+
{0x4694ac2f, "amoor.w.aqrl x24, x9, (x9)"},
57+
{0x60afa2af, "amoand.w x5, x10, (x31)"},
58+
{0x63f724af, "amoand.w.rl x9, x31, (x14)"},
59+
{0x64c3a42f, "amoand.w.aq x8, x12, (x7)"},
60+
{0x6629a52f, "amoand.w.aqrl x10, x2, (x19)"},
61+
{0x81962c2f, "amomin.w x24, x25, (x12)"},
62+
{0x83d1a1af, "amomin.w.rl x3, x29, (x3)"},
63+
{0x84d5ac2f, "amomin.w.aq x24, x13, (x11)"},
64+
{0x864526af, "amomin.w.aqrl x13, x4, (x10)"},
65+
{0xa0742baf, "amomax.w x23, x7, (x8)"},
66+
{0xa36329af, "amomax.w.rl x19, x22, (x6)"},
67+
{0xa4132b2f, "amomax.w.aq x22, x1, (x6)"},
68+
{0xa60a2e2f, "amomax.w.aqrl x28, x0, (x20)"},
69+
{0xc0f5242f, "amominu.w x8, x15, (x10)"},
70+
{0xc227abaf, "amominu.w.rl x23, x2, (x15)"},
71+
{0xc5d7a32f, "amominu.w.aq x6, x29, (x15)"},
72+
{0xc6752caf, "amominu.w.aqrl x25, x7, (x10)"},
73+
{0xe1892faf, "amomaxu.w x31, x24, (x18)"},
74+
{0xe27520af, "amomaxu.w.rl x1, x7, (x10)"},
75+
{0xe55c202f, "amomaxu.w.aq x0, x21, (x24)"},
76+
{0xe63b24af, "amomaxu.w.aqrl x9, x3, (x22)"},
77+
{0x117bbaf, "amoadd.d x23, x17, (x15)"},
78+
{0x29e3b2f, "amoadd.d.rl x22, x9, (x28)"},
79+
{0x492322f, "amoadd.d.aq x4, x9, (x4)"},
80+
{0x730372f, "amoadd.d.aqrl x14, x19, (x0)"},
81+
{0x83cb2af, "amoswap.d x5, x3, (x25)"},
82+
{0xb2a3d2f, "amoswap.d.rl x26, x18, (x20)"},
83+
{0xd10b82f, "amoswap.d.aq x16, x17, (x1)"},
84+
{0xf15b52f, "amoswap.d.aqrl x10, x17, (x11)"},
85+
{0x1009be2f, "lr.d x28, (x19)"},
86+
{0x120833af, "lr.d.rl x7, (x16)"},
87+
{0x140b3b2f, "lr.d.aq x22, (x22)"},
88+
{0x160b352f, "lr.d.aqrl x10, (x22)"},
89+
{0x19413faf, "sc.d x31, x20, (x2)"},
90+
{0x1b49b7af, "sc.d.rl x15, x20, (x19)"},
91+
{0x1d6ab1af, "sc.d.aq x3, x22, (x21)"},
92+
{0x1f7d30af, "sc.d.aqrl x1, x23, (x26)"},
93+
{0x2099b22f, "amoxor.d x4, x9, (x19)"},
94+
{0x2281b8af, "amoxor.d.rl x17, x8, (x3)"},
95+
{0x243e3e2f, "amoxor.d.aq x28, x3, (x28)"},
96+
{0x26fc322f, "amoxor.d.aqrl x4, x15, (x24)"},
97+
{0x411934af, "amoor.d x9, x17, (x18)"},
98+
{0x42d0b6af, "amoor.d.rl x13, x13, (x1)"},
99+
{0x45d4b12f, "amoor.d.aq x2, x29, (x9)"},
100+
{0x46c432af, "amoor.d.aqrl x5, x12, (x8)"},
101+
{0x6189ba2f, "amoand.d x20, x24, (x19)"},
102+
{0x62d9b22f, "amoand.d.rl x4, x13, (x19)"},
103+
{0x657c312f, "amoand.d.aq x2, x23, (x24)"},
104+
{0x6731372f, "amoand.d.aqrl x14, x19, (x2)"},
105+
{0x8042b7af, "amomin.d x15, x4, (x5)"},
106+
{0x82f6bcaf, "amomin.d.rl x25, x15, (x13)"},
107+
{0x84a8bc2f, "amomin.d.aq x24, x10, (x17)"},
108+
{0x87693a2f, "amomin.d.aqrl x20, x22, (x18)"},
109+
{0xa0e430af, "amomax.d x1, x14, (x8)"},
110+
{0xa38fb02f, "amomax.d.rl x0, x24, (x31)"},
111+
{0xa4eabaaf, "amomax.d.aq x21, x14, (x21)"},
112+
{0xa6abbdaf, "amomax.d.aqrl x27, x10, (x23)"},
113+
{0xc0643f2f, "amominu.d x30, x6, (x8)"},
114+
{0xc2463eaf, "amominu.d.rl x29, x4, (x12)"},
115+
{0xc4c7b72f, "amominu.d.aq x14, x12, (x15)"},
116+
{0xc6c6b72f, "amominu.d.aqrl x14, x12, (x13)"},
117+
{0xe1e1b72f, "amomaxu.d x14, x30, (x3)"},
118+
{0xe2ab3d2f, "amomaxu.d.rl x26, x10, (x22)"},
119+
{0xe5353d2f, "amomaxu.d.aq x26, x19, (x10)"},
120+
{0xe6fbb52f, "amomaxu.d.aqrl x10, x15, (x23)"},
121+
{0xe80533, "add x10, x16, x14"},
122+
{0x413004b3, "sub x9, x0, x19", "neg x9, x19"},
123+
{0x40180d33, "sub x26, x16, x1"},
124+
{0x9419b3, "sll x19, x8, x9"},
125+
{0xea133, "slt x2, x29, x0", "sltz x2, x29"},
126+
{0x1f026b3, "slt x13, x0, x31", "sgtz x13, x31"},
127+
{0x92133, "slt x2, x18, x0"},
128+
{0x6031b3, "sltu x3, x0, x6", "snez x3, x6"},
129+
{0xe53ab3, "sltu x21, x10, x14"},
130+
{0x1b34ab3, "xor x21, x6, x27"},
131+
{0x1a7dbb3, "srl x23, x15, x26"},
132+
{0x40285e33, "sra x28, x16, x2"},
133+
{0x9beb33, "or x22, x23, x9"},
134+
{0x57f033, "and x0, x15, x5"},
135+
{0x2830033, "mul x0, x6, x8"},
136+
{0x21c9133, "mulh x2, x25, x1"},
137+
{0x2d62833, "mulhsu x16, x12, x13"},
138+
{0x378b733, "mulhu x14, x17, x23"},
139+
{0x32ac333, "div x6, x21, x18"},
140+
{0x33ad733, "divu x14, x21, x19"},
141+
{0x342e0b3, "rem x1, x5, x20"},
142+
{0x3f4f733, "remu x14, x9, x31"},
143+
{0x4f615cb7, "lui x25, 0x4f615"},
144+
{0x530f3b, "addw x30, x6, x5"},
145+
{0x408003bb, "subw x7, x0, x8", "negw x7, x8"},
146+
{0x41cd83bb, "subw x7, x27, x28"},
147+
{0x3490bb, "sllw x1, x9, x3"},
148+
{0xed5f3b, "srlw x30, x26, x14"},
149+
{0x40c752bb, "sraw x5, x14, x12"},
150+
{0x31706bb, "mulw x13, x14, x17"},
151+
{0x33ec93b, "divw x18, x29, x19"},
152+
{0x2ce5e3b, "divuw x28, x28, x12"},
153+
{0x2b1e2bb, "remw x5, x3, x11"},
154+
{0x38af43b, "remuw x8, x21, x24"},
155+
{0x400d0863, "beq x26, x0, 0x410", "beqz x26, 0x410"},
156+
{0x5d2e0c63, "beq x28, x18, 0x5d8"},
157+
{0xfe0793e3, "bne x15, x0, -0x1a", "bnez x15, -0x1a"},
158+
{0x90a21763, "bne x4, x10, -0xef2"},
159+
{0x6204cd63, "blt x9, x0, 0x63a", "bltz x9, 0x63a"},
160+
{0x16604ae3, "blt x0, x6, 0x974", "bgtz x6, 0x974"},
161+
{0x4762c2e3, "blt x5, x22, 0xc64", "bgt x22, x5, 0xc64"},
162+
{0x4f3cc63, "blt x7, x15, 0x58"},
163+
{0x40c5e63, "bge x24, x0, 0x5c", "bgez x24, 0x5c"},
164+
{0xfab1df63, "bge x3, x11, -0x842", "ble x11, x3, -0x842"},
165+
{0xa4705663, "bge x0, x7, -0xdb4", "blez x7, -0xdb4"},
166+
{0xbe195ee3, "bge x18, x1, -0x404"},
167+
{0xb90866e3, "bltu x16, x16, -0x474", "bgtu x16, x16, -0x474"},
168+
{0x1ca1e8e3, "bltu x3, x10, 0x9d0"},
169+
{0x153070e3, "bgeu x0, x19, 0x940", "bleu x19, x0, 0x940"},
170+
{0xca7777e3, "bgeu x14, x7, -0x352"},
171171
{0x8067, "jalr x0, 0(x1)", "ret"},
172-
{0x8067, "jalr x0, 0(x1)", "jr x1"},
173-
{0x108067, "jalr x0, 1(x1)", "jr 1(x1)"},
174-
{0x80e7, "jalr x1, 0(x1)", "jalr x1"},
175-
{0x1080e7, "jalr x1, 1(x1)", "jalr 1(x1)"},
176-
{0x1080e7, "jalr x1, 1(x1)", "jalr x1, x1, 1"},
177-
{0x1080e7, "jalr x1, 1(x1)"},
178-
{0x20006f, "jal x0, 0x2", "j 0x2"},
179-
{0x2000ef, "jal x1, 0x2", "jal 0x2"},
180-
{0x2000ef, "jal x1, 0x2"},
172+
{0x98067, "jalr x0, 0(x19)", "jr x19"},
173+
{0xa88a0067, "jalr x0, -1400(x20)", "jr -1400(x20)"},
174+
{0xf80e7, "jalr x1, 0(x31)", "jalr x31"},
175+
{0x58cc00e7, "jalr x1, 1420(x24)", "jalr 1420(x24)"},
176+
{0x69698ae7, "jalr x21, 1686(x19)", "jalr x21, x19, 1686"},
177+
{0x1dc90967, "jalr x18, 476(x18)"},
178+
{0x5f11506f, "jal x0, 0x15df0", "j 0x15df0"},
179+
{0xb2210ef, "jal x1, 0x210b2", "jal 0x210b2"},
180+
{0x7ef56e6f, "jal x28, 0x56fee"},
181181
{0x73, "ecall"},
182182
{0x100073, "ebreak"},
183183
{0x10200073, "sret"},
184184
{0x30200073, "mret"},
185-
{0xf1209073, "csrrw x0, 0xf12, x1", "csrw 0xf12, x1"},
186-
{0xf12090f3, "csrrw x1, 0xf12, x1"},
187-
{0xf12020f3, "csrrs x1, 0xf12, x0", "csrr x1, 0xf12"},
188-
{0xf120a0f3, "csrrs x1, 0xf12, x1"},
189-
{0xf120b0f3, "csrrc x1, 0xf12, x1"},
190-
{0xf120d0f3, "csrrwi x1, 0xf12, 0x1"},
191-
{0xf120e0f3, "csrrsi x1, 0xf12, 0x1"},
192-
{0xf120f0f3, "csrrci x1, 0xf12, 0x1"},
185+
{0x305b1073, "csrrw x0, 0x305, x22", "csrw mtvec, x22"},
186+
{0xf13c1f73, "csrrw x30, 0xf13, x24", "csrrw x30, mimpid, x24"},
187+
{0x30102cf3, "csrrs x25, 0x301, x0", "csrr x25, misa"},
188+
{0xb02022f3, "csrrs x5, 0xb02, x0", "csrrs x5, minstret, x0"},
189+
{0xb0053673, "csrrc x12, 0xb00, x10", "csrrc x12, mcycle, x10"},
190+
{0x34365973, "csrrwi x18, 0x343, 0xc", "csrrwi x18, mtval, 0xc"},
191+
{0x34a061f3, "csrrsi x3, 0x34a, 0x0", "csrrsi x3, mtinst, 0x0"},
192+
{0xb025f473, "csrrci x8, 0xb02, 0xb", "csrrci x8, minstret, 0xb"},

0 commit comments

Comments
 (0)