tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-IO-01.elf.objdump

402 lines
14 KiB
Plaintext

D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-IO-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002097 auipc ra,0x2
84: f8008093 addi ra,ra,-128 # 2000 <test_A1_data>
88: 00002117 auipc sp,0x2
8c: fa810113 addi sp,sp,-88 # 2030 <begin_signature>
90: 0000a183 lw gp,0(ra)
94: 00000213 li tp,0
98: 00100293 li t0,1
9c: fff00313 li t1,-1
a0: 800003b7 lui t2,0x80000
a4: fff38393 addi t2,t2,-1 # 7fffffff <_end+0x7fffddfb>
a8: 80000437 lui s0,0x80000
ac: 00418233 add tp,gp,tp
b0: 005182b3 add t0,gp,t0
b4: 00618333 add t1,gp,t1
b8: 007183b3 add t2,gp,t2
bc: 00818433 add s0,gp,s0
c0: 00312023 sw gp,0(sp)
c4: 00412223 sw tp,4(sp)
c8: 00512423 sw t0,8(sp)
cc: 00612623 sw t1,12(sp)
d0: 00712823 sw t2,16(sp)
d4: 00812a23 sw s0,20(sp)
d8: 00002097 auipc ra,0x2
dc: f2c08093 addi ra,ra,-212 # 2004 <test_A2_data>
e0: 00002117 auipc sp,0x2
e4: f6810113 addi sp,sp,-152 # 2048 <test_A2_res>
e8: 0000a403 lw s0,0(ra)
ec: 00000493 li s1,0
f0: 00100513 li a0,1
f4: fff00593 li a1,-1
f8: 80000637 lui a2,0x80000
fc: fff60613 addi a2,a2,-1 # 7fffffff <_end+0x7fffddfb>
100: 800006b7 lui a3,0x80000
104: 009404b3 add s1,s0,s1
108: 00a40533 add a0,s0,a0
10c: 00b405b3 add a1,s0,a1
110: 00c40633 add a2,s0,a2
114: 00d406b3 add a3,s0,a3
118: 00812023 sw s0,0(sp)
11c: 00912223 sw s1,4(sp)
120: 00a12423 sw a0,8(sp)
124: 00b12623 sw a1,12(sp)
128: 00c12823 sw a2,16(sp)
12c: 00d12a23 sw a3,20(sp)
130: 00002097 auipc ra,0x2
134: ed808093 addi ra,ra,-296 # 2008 <test_A3_data>
138: 00002117 auipc sp,0x2
13c: f2810113 addi sp,sp,-216 # 2060 <test_A3_res>
140: 0000a683 lw a3,0(ra)
144: 00000713 li a4,0
148: 00100793 li a5,1
14c: fff00813 li a6,-1
150: 800008b7 lui a7,0x80000
154: fff88893 addi a7,a7,-1 # 7fffffff <_end+0x7fffddfb>
158: 80000937 lui s2,0x80000
15c: 00e68733 add a4,a3,a4
160: 00f687b3 add a5,a3,a5
164: 01068833 add a6,a3,a6
168: 011688b3 add a7,a3,a7
16c: 01268933 add s2,a3,s2
170: 00d12023 sw a3,0(sp)
174: 00e12223 sw a4,4(sp)
178: 00f12423 sw a5,8(sp)
17c: 01012623 sw a6,12(sp)
180: 01112823 sw a7,16(sp)
184: 01212a23 sw s2,20(sp)
188: 00002097 auipc ra,0x2
18c: e8408093 addi ra,ra,-380 # 200c <test_A4_data>
190: 00002117 auipc sp,0x2
194: ee810113 addi sp,sp,-280 # 2078 <test_A4_res>
198: 0000a903 lw s2,0(ra)
19c: 00000993 li s3,0
1a0: 00100a13 li s4,1
1a4: fff00a93 li s5,-1
1a8: 80000b37 lui s6,0x80000
1ac: fffb0b13 addi s6,s6,-1 # 7fffffff <_end+0x7fffddfb>
1b0: 80000bb7 lui s7,0x80000
1b4: 013909b3 add s3,s2,s3
1b8: 01490a33 add s4,s2,s4
1bc: 01590ab3 add s5,s2,s5
1c0: 01690b33 add s6,s2,s6
1c4: 01790bb3 add s7,s2,s7
1c8: 01212023 sw s2,0(sp)
1cc: 01312223 sw s3,4(sp)
1d0: 01412423 sw s4,8(sp)
1d4: 01512623 sw s5,12(sp)
1d8: 01612823 sw s6,16(sp)
1dc: 01712a23 sw s7,20(sp)
1e0: 00002097 auipc ra,0x2
1e4: e3008093 addi ra,ra,-464 # 2010 <test_A5_data>
1e8: 00002117 auipc sp,0x2
1ec: ea810113 addi sp,sp,-344 # 2090 <test_A5_res>
1f0: 0000ab83 lw s7,0(ra)
1f4: 00000c13 li s8,0
1f8: 00100c93 li s9,1
1fc: fff00d13 li s10,-1
200: 80000db7 lui s11,0x80000
204: fffd8d93 addi s11,s11,-1 # 7fffffff <_end+0x7fffddfb>
208: 80000e37 lui t3,0x80000
20c: 018b8c33 add s8,s7,s8
210: 019b8cb3 add s9,s7,s9
214: 01ab8d33 add s10,s7,s10
218: 01bb8db3 add s11,s7,s11
21c: 01cb8e33 add t3,s7,t3
220: 01712023 sw s7,0(sp)
224: 01812223 sw s8,4(sp)
228: 01912423 sw s9,8(sp)
22c: 01a12623 sw s10,12(sp)
230: 01b12823 sw s11,16(sp)
234: 01c12a23 sw t3,20(sp)
238: 00002c97 auipc s9,0x2
23c: ddcc8c93 addi s9,s9,-548 # 2014 <test_B_data>
240: 00002d17 auipc s10,0x2
244: e68d0d13 addi s10,s10,-408 # 20a8 <test_B_res>
248: 000cae03 lw t3,0(s9)
24c: 00100d93 li s11,1
250: 01be0eb3 add t4,t3,s11
254: 01be8f33 add t5,t4,s11
258: 01bf0fb3 add t6,t5,s11
25c: 01bf80b3 add ra,t6,s11
260: 01b08133 add sp,ra,s11
264: 01b101b3 add gp,sp,s11
268: 01bd2023 sw s11,0(s10)
26c: 01cd2223 sw t3,4(s10)
270: 01dd2423 sw t4,8(s10)
274: 01ed2623 sw t5,12(s10)
278: 01fd2823 sw t6,16(s10)
27c: 001d2a23 sw ra,20(s10)
280: 002d2c23 sw sp,24(s10)
284: 003d2e23 sw gp,28(s10)
288: 00002097 auipc ra,0x2
28c: d9008093 addi ra,ra,-624 # 2018 <test_C_data>
290: 00002117 auipc sp,0x2
294: e3810113 addi sp,sp,-456 # 20c8 <test_C_res>
298: 0000ae03 lw t3,0(ra)
29c: f7ff9db7 lui s11,0xf7ff9
2a0: 818d8d93 addi s11,s11,-2024 # f7ff8818 <_end+0xf7ff6614>
2a4: 01be0033 add zero,t3,s11
2a8: 00012023 sw zero,0(sp)
2ac: 00002097 auipc ra,0x2
2b0: d7008093 addi ra,ra,-656 # 201c <test_D_data>
2b4: 00002117 auipc sp,0x2
2b8: e1810113 addi sp,sp,-488 # 20cc <test_D_res>
2bc: 0000ae03 lw t3,0(ra)
2c0: f7ff9db7 lui s11,0xf7ff9
2c4: 818d8d93 addi s11,s11,-2024 # f7ff8818 <_end+0xf7ff6614>
2c8: 01be0033 add zero,t3,s11
2cc: 000002b3 add t0,zero,zero
2d0: 00012023 sw zero,0(sp)
2d4: 00512223 sw t0,4(sp)
2d8: 00002097 auipc ra,0x2
2dc: d4808093 addi ra,ra,-696 # 2020 <test_E_data>
2e0: 00002117 auipc sp,0x2
2e4: df410113 addi sp,sp,-524 # 20d4 <test_E_res>
2e8: 0000a183 lw gp,0(ra)
2ec: 00018233 add tp,gp,zero
2f0: 000202b3 add t0,tp,zero
2f4: 00500333 add t1,zero,t0
2f8: 00030733 add a4,t1,zero
2fc: 000707b3 add a5,a4,zero
300: 00078833 add a6,a5,zero
304: 01000cb3 add s9,zero,a6
308: 01900d33 add s10,zero,s9
30c: 000d0db3 add s11,s10,zero
310: 00412023 sw tp,0(sp)
314: 01a12223 sw s10,4(sp)
318: 01b12423 sw s11,8(sp)
31c: 00002297 auipc t0,0x2
320: d1428293 addi t0,t0,-748 # 2030 <begin_signature>
324: 10000337 lui t1,0x10000
328: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
32c: 00532023 sw t0,0(t1)
330: 00002297 auipc t0,0x2
334: db028293 addi t0,t0,-592 # 20e0 <end_signature>
338: 10000337 lui t1,0x10000
33c: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
340: 00532023 sw t0,0(t1)
344: 00100293 li t0,1
348: 10000337 lui t1,0x10000
34c: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
350: 00532023 sw t0,0(t1)
354: 00000013 nop
358: 00100193 li gp,1
35c: 00000073 ecall
00000360 <end_testcode>:
360: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <test_A1_data>:
2000: 0000 unimp
...
00002004 <test_A2_data>:
2004: 0001 nop
...
00002008 <test_A3_data>:
2008: ffff 0xffff
200a: ffff 0xffff
0000200c <test_A4_data>:
200c: ffff 0xffff
200e: 7fff 0x7fff
00002010 <test_A5_data>:
2010: 0000 unimp
2012: 8000 0x8000
00002014 <test_B_data>:
2014: abcd j 2606 <_end+0x402>
...
00002018 <test_C_data>:
2018: 5678 lw a4,108(a2)
201a: 1234 addi a3,sp,296
0000201c <test_D_data>:
201c: ba98 fsd fa4,48(a3)
201e: fedc fsw fa5,60(a3)
00002020 <test_E_data>:
2020: 5814 lw a3,48(s0)
2022: 3692 fld fa3,288(sp)
...
00002030 <begin_signature>:
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
00002048 <test_A2_res>:
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
00002060 <test_A3_res>:
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_A4_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: ffff 0xffff
208e: ffff 0xffff
00002090 <test_A5_res>:
2090: ffff 0xffff
2092: ffff 0xffff
2094: ffff 0xffff
2096: ffff 0xffff
2098: ffff 0xffff
209a: ffff 0xffff
209c: ffff 0xffff
209e: ffff 0xffff
20a0: ffff 0xffff
20a2: ffff 0xffff
20a4: ffff 0xffff
20a6: ffff 0xffff
000020a8 <test_B_res>:
20a8: ffff 0xffff
20aa: ffff 0xffff
20ac: ffff 0xffff
20ae: ffff 0xffff
20b0: ffff 0xffff
20b2: ffff 0xffff
20b4: ffff 0xffff
20b6: ffff 0xffff
20b8: ffff 0xffff
20ba: ffff 0xffff
20bc: ffff 0xffff
20be: ffff 0xffff
20c0: ffff 0xffff
20c2: ffff 0xffff
20c4: ffff 0xffff
20c6: ffff 0xffff
000020c8 <test_C_res>:
20c8: ffff 0xffff
20ca: ffff 0xffff
000020cc <test_D_res>:
20cc: ffff 0xffff
20ce: ffff 0xffff
20d0: ffff 0xffff
20d2: ffff 0xffff
000020d4 <test_E_res>:
20d4: ffff 0xffff
20d6: ffff 0xffff
20d8: ffff 0xffff
20da: ffff 0xffff
20dc: ffff 0xffff
20de: ffff 0xffff
000020e0 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...