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

394 lines
14 KiB
Plaintext

D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-SW-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: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: 0002a023 sw zero,0(t0)
8c: fff00813 li a6,-1
90: 00028f93 mv t6,t0
94: 7d0f8f93 addi t6,t6,2000
98: 830fa823 sw a6,-2000(t6)
9c: 0002a383 lw t2,0(t0)
a0: 0002a223 sw zero,4(t0)
a4: 00100793 li a5,1
a8: 00428f13 addi t5,t0,4
ac: 000f0f13 mv t5,t5
b0: 00ff2023 sw a5,0(t5)
b4: 0042a383 lw t2,4(t0)
b8: 0002a423 sw zero,8(t0)
bc: 00000713 li a4,0
c0: 00828e93 addi t4,t0,8
c4: 001e8e93 addi t4,t4,1
c8: feeeafa3 sw a4,-1(t4)
cc: 0082a383 lw t2,8(t0)
d0: 0002a623 sw zero,12(t0)
d4: 7ff00693 li a3,2047
d8: 00c28e13 addi t3,t0,12
dc: 7d0e0e13 addi t3,t3,2000
e0: 82de2823 sw a3,-2000(t3)
e4: 00c2a383 lw t2,12(t0)
e8: 0002a823 sw zero,16(t0)
ec: 00000613 li a2,0
f0: 01028d93 addi s11,t0,16
f4: 830d8d93 addi s11,s11,-2000
f8: 7ccda823 sw a2,2000(s11)
fc: 0102a383 lw t2,16(t0)
100: 00002097 auipc ra,0x2
104: f1408093 addi ra,ra,-236 # 2014 <test_2_res>
108: 0000a023 sw zero,0(ra)
10c: 000015b7 lui a1,0x1
110: 80058593 addi a1,a1,-2048 # 800 <end_testcode+0x3dc>
114: 00008d13 mv s10,ra
118: 830d0d13 addi s10,s10,-2000
11c: 7cbd2823 sw a1,2000(s10)
120: 0000a183 lw gp,0(ra)
124: 0000a223 sw zero,4(ra)
128: 07654537 lui a0,0x7654
12c: 32150513 addi a0,a0,801 # 7654321 <_end+0x765211d>
130: 00408c93 addi s9,ra,4
134: 830c8c93 addi s9,s9,-2000
138: 7caca823 sw a0,2000(s9)
13c: 0040a183 lw gp,4(ra)
140: 0000a423 sw zero,8(ra)
144: 800004b7 lui s1,0x80000
148: fff48493 addi s1,s1,-1 # 7fffffff <_end+0x7fffddfb>
14c: 00808c13 addi s8,ra,8
150: fffc0c13 addi s8,s8,-1
154: 009c20a3 sw s1,1(s8)
158: 0080a183 lw gp,8(ra)
15c: 0000a623 sw zero,12(ra)
160: 00100413 li s0,1
164: 00c08b93 addi s7,ra,12
168: 830b8b93 addi s7,s7,-2000
16c: 7c8ba823 sw s0,2000(s7)
170: 00c0a183 lw gp,12(ra)
174: 0000a823 sw zero,16(ra)
178: fff00393 li t2,-1
17c: 01008b13 addi s6,ra,16
180: 830b0b13 addi s6,s6,-2000
184: 7c7b2823 sw t2,2000(s6)
188: 0100a183 lw gp,16(ra)
18c: 00002097 auipc ra,0x2
190: e9c08093 addi ra,ra,-356 # 2028 <test_3_res>
194: 0000a023 sw zero,0(ra)
198: 00001337 lui t1,0x1
19c: 23430313 addi t1,t1,564 # 1234 <fromhost+0x134>
1a0: 00008a93 mv s5,ra
1a4: 830a8a93 addi s5,s5,-2000
1a8: 7c6aa823 sw t1,2000(s5)
1ac: 0000a403 lw s0,0(ra)
1b0: 0000a223 sw zero,4(ra)
1b4: 800002b7 lui t0,0x80000
1b8: 00408a13 addi s4,ra,4
1bc: 000a0a13 mv s4,s4
1c0: 005a2023 sw t0,0(s4)
1c4: 0040a403 lw s0,4(ra)
1c8: 0000a423 sw zero,8(ra)
1cc: fffff237 lui tp,0xfffff
1d0: dcc20213 addi tp,tp,-564 # ffffedcc <_end+0xffffcbc8>
1d4: 00808993 addi s3,ra,8
1d8: 83098993 addi s3,s3,-2000
1dc: 7c49a823 sw tp,2000(s3)
1e0: 0080a403 lw s0,8(ra)
1e4: 0000a623 sw zero,12(ra)
1e8: fff00193 li gp,-1
1ec: 00c08913 addi s2,ra,12
1f0: 00190913 addi s2,s2,1
1f4: fe392fa3 sw gp,-1(s2)
1f8: 00c0a403 lw s0,12(ra)
1fc: 0000a823 sw zero,16(ra)
200: 80100113 li sp,-2047
204: 01008893 addi a7,ra,16
208: 00088893 mv a7,a7
20c: 0028a023 sw sp,0(a7)
210: 0100a403 lw s0,16(ra)
214: 00002117 auipc sp,0x2
218: e2810113 addi sp,sp,-472 # 203c <test_4_res>
21c: 00012023 sw zero,0(sp)
220: ffe00093 li ra,-2
224: 00010813 mv a6,sp
228: fff80813 addi a6,a6,-1
22c: 001820a3 sw ra,1(a6)
230: 00012203 lw tp,0(sp)
234: 00012223 sw zero,4(sp)
238: fff00013 li zero,-1
23c: 00410793 addi a5,sp,4
240: 7d078793 addi a5,a5,2000
244: 8207a823 sw zero,-2000(a5)
248: 00412203 lw tp,4(sp)
24c: 00012423 sw zero,8(sp)
250: 00100f93 li t6,1
254: 00810713 addi a4,sp,8
258: 00070713 mv a4,a4
25c: 01f72023 sw t6,0(a4)
260: 00812203 lw tp,8(sp)
264: 00012623 sw zero,12(sp)
268: 00000f13 li t5,0
26c: 00c10693 addi a3,sp,12
270: 00168693 addi a3,a3,1
274: ffe6afa3 sw t5,-1(a3)
278: 00c12203 lw tp,12(sp)
27c: 00012823 sw zero,16(sp)
280: 7ff00e93 li t4,2047
284: 01010613 addi a2,sp,16
288: 7d060613 addi a2,a2,2000
28c: 83d62823 sw t4,-2000(a2)
290: 01012203 lw tp,16(sp)
294: 00002097 auipc ra,0x2
298: dbc08093 addi ra,ra,-580 # 2050 <test_5_res>
29c: 0000a023 sw zero,0(ra)
2a0: 00000e13 li t3,0
2a4: 00008593 mv a1,ra
2a8: 83058593 addi a1,a1,-2000
2ac: 7dc5a823 sw t3,2000(a1)
2b0: 0000a183 lw gp,0(ra)
2b4: 0000a223 sw zero,4(ra)
2b8: 00001db7 lui s11,0x1
2bc: 800d8d93 addi s11,s11,-2048 # 800 <end_testcode+0x3dc>
2c0: 00408513 addi a0,ra,4
2c4: 83050513 addi a0,a0,-2000
2c8: 7db52823 sw s11,2000(a0)
2cc: 0040a183 lw gp,4(ra)
2d0: 0000a423 sw zero,8(ra)
2d4: 07654d37 lui s10,0x7654
2d8: 321d0d13 addi s10,s10,801 # 7654321 <_end+0x765211d>
2dc: 00808493 addi s1,ra,8
2e0: 83048493 addi s1,s1,-2000
2e4: 7da4a823 sw s10,2000(s1)
2e8: 0080a183 lw gp,8(ra)
2ec: 0000a623 sw zero,12(ra)
2f0: 80000cb7 lui s9,0x80000
2f4: fffc8c93 addi s9,s9,-1 # 7fffffff <_end+0x7fffddfb>
2f8: 00c08413 addi s0,ra,12
2fc: fff40413 addi s0,s0,-1
300: 019420a3 sw s9,1(s0)
304: 00c0a183 lw gp,12(ra)
308: 0000a823 sw zero,16(ra)
30c: 00100c13 li s8,1
310: 01008393 addi t2,ra,16
314: 83038393 addi t2,t2,-2000
318: 7d83a823 sw s8,2000(t2)
31c: 0100a183 lw gp,16(ra)
320: 00002097 auipc ra,0x2
324: d4408093 addi ra,ra,-700 # 2064 <test_6_res>
328: 0000a023 sw zero,0(ra)
32c: fff00b93 li s7,-1
330: 00008313 mv t1,ra
334: 83030313 addi t1,t1,-2000
338: 7d732823 sw s7,2000(t1)
33c: 0000a403 lw s0,0(ra)
340: 0000a223 sw zero,4(ra)
344: 00001b37 lui s6,0x1
348: 234b0b13 addi s6,s6,564 # 1234 <fromhost+0x134>
34c: 00408293 addi t0,ra,4
350: 83028293 addi t0,t0,-2000 # 7ffff830 <_end+0x7fffd62c>
354: 7d62a823 sw s6,2000(t0)
358: 0040a403 lw s0,4(ra)
35c: 0000a423 sw zero,8(ra)
360: 80000ab7 lui s5,0x80000
364: 00808213 addi tp,ra,8
368: 00020213 mv tp,tp
36c: 01522023 sw s5,0(tp) # 0 <_start>
370: 0080a403 lw s0,8(ra)
374: 0000a623 sw zero,12(ra)
378: fffffa37 lui s4,0xfffff
37c: dcca0a13 addi s4,s4,-564 # ffffedcc <_end+0xffffcbc8>
380: 00c08193 addi gp,ra,12
384: 83018193 addi gp,gp,-2000
388: 7d41a823 sw s4,2000(gp)
38c: 00c0a403 lw s0,12(ra)
390: 0000a823 sw zero,16(ra)
394: fff00993 li s3,-1
398: 01008113 addi sp,ra,16
39c: 00110113 addi sp,sp,1
3a0: ff312fa3 sw s3,-1(sp)
3a4: 0100a403 lw s0,16(ra)
3a8: 00002117 auipc sp,0x2
3ac: cd010113 addi sp,sp,-816 # 2078 <test_7_res>
3b0: 00012023 sw zero,0(sp)
3b4: 80100913 li s2,-2047
3b8: 00010093 mv ra,sp
3bc: 00008093 mv ra,ra
3c0: 0120a023 sw s2,0(ra)
3c4: 00012203 lw tp,0(sp)
3c8: 00012223 sw zero,4(sp)
3cc: ffe00893 li a7,-2
3d0: 00410093 addi ra,sp,4
3d4: fff08093 addi ra,ra,-1
3d8: 0110a0a3 sw a7,1(ra)
3dc: 00412203 lw tp,4(sp)
3e0: 00002297 auipc t0,0x2
3e4: c2028293 addi t0,t0,-992 # 2000 <begin_signature>
3e8: 10000337 lui t1,0x10000
3ec: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
3f0: 00532023 sw t0,0(t1)
3f4: 00002297 auipc t0,0x2
3f8: c9c28293 addi t0,t0,-868 # 2090 <end_signature>
3fc: 10000337 lui t1,0x10000
400: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
404: 00532023 sw t0,0(t1)
408: 00100293 li t0,1
40c: 10000337 lui t1,0x10000
410: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
414: 00532023 sw t0,0(t1)
418: 00000013 nop
41c: 00100193 li gp,1
420: 00000073 ecall
00000424 <end_testcode>:
424: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
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_7_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: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...