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

410 lines
15 KiB
Plaintext
Raw Normal View History

/home/ubuntu/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-SW-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 0480006f j 48 <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0863 beq t5,t6,3c <write_tohost>
10: 00900f93 li t6,9
14: 03ff0463 beq t5,t6,3c <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0063 beq t5,t6,3c <write_tohost>
20: 00000f13 li t5,0
24: 000f0463 beqz t5,2c <trap_vector+0x28>
28: 000f0067 jr t5
2c: 34202f73 csrr t5,mcause
30: 000f5463 bgez t5,38 <handle_exception>
34: 0040006f j 38 <handle_exception>
00000038 <handle_exception>:
38: 5391e193 ori gp,gp,1337
0000003c <write_tohost>:
3c: 00001f17 auipc t5,0x1
40: fc3f2223 sw gp,-60(t5) # 1000 <tohost>
44: ff9ff06f j 3c <write_tohost>
00000048 <reset_vector>:
48: 00000193 li gp,0
4c: 00000297 auipc t0,0x0
50: fb828293 addi t0,t0,-72 # 4 <trap_vector>
54: 30529073 csrw mtvec,t0
58: 30005073 csrwi mstatus,0
5c: 00000297 auipc t0,0x0
60: 02028293 addi t0,t0,32 # 7c <begin_testcode>
64: 34129073 csrw mepc,t0
68: 00000293 li t0,0
6c: 20000337 lui t1,0x20000
70: 01030313 addi t1,t1,16 # 20000010 <_end+0x1fffde0c>
74: 00532023 sw t0,0(t1)
78: 30200073 mret
0000007c <begin_testcode>:
7c: 00002297 auipc t0,0x2
80: f8428293 addi t0,t0,-124 # 2000 <begin_signature>
84: 0002a023 sw zero,0(t0)
88: fff00813 li a6,-1
8c: 00028f93 mv t6,t0
90: 7d0f8f93 addi t6,t6,2000
94: 830fa823 sw a6,-2000(t6)
98: 0002a383 lw t2,0(t0)
9c: 0002a223 sw zero,4(t0)
a0: 00100793 li a5,1
a4: 00428f13 addi t5,t0,4
a8: 000f0f13 mv t5,t5
ac: 00ff2023 sw a5,0(t5)
b0: 0042a383 lw t2,4(t0)
b4: 0002a423 sw zero,8(t0)
b8: 00000713 li a4,0
bc: 00828e93 addi t4,t0,8
c0: 001e8e93 addi t4,t4,1
c4: feeeafa3 sw a4,-1(t4)
c8: 0082a383 lw t2,8(t0)
cc: 0002a623 sw zero,12(t0)
d0: 7ff00693 li a3,2047
d4: 00c28e13 addi t3,t0,12
d8: 7d0e0e13 addi t3,t3,2000
dc: 82de2823 sw a3,-2000(t3)
e0: 00c2a383 lw t2,12(t0)
e4: 0002a823 sw zero,16(t0)
e8: 00000613 li a2,0
ec: 01028d93 addi s11,t0,16
f0: 830d8d93 addi s11,s11,-2000
f4: 7ccda823 sw a2,2000(s11)
f8: 0102a383 lw t2,16(t0)
fc: 00002097 auipc ra,0x2
100: f1808093 addi ra,ra,-232 # 2014 <test_2_res>
104: 0000a023 sw zero,0(ra)
108: 000015b7 lui a1,0x1
10c: 80058593 addi a1,a1,-2048 # 800 <end_testcode+0x3e0>
110: 00008d13 mv s10,ra
114: 830d0d13 addi s10,s10,-2000
118: 7cbd2823 sw a1,2000(s10)
11c: 0000a183 lw gp,0(ra)
120: 0000a223 sw zero,4(ra)
124: 07654537 lui a0,0x7654
128: 32150513 addi a0,a0,801 # 7654321 <_end+0x765211d>
12c: 00408c93 addi s9,ra,4
130: 830c8c93 addi s9,s9,-2000
134: 7caca823 sw a0,2000(s9)
138: 0040a183 lw gp,4(ra)
13c: 0000a423 sw zero,8(ra)
140: 800004b7 lui s1,0x80000
144: fff48493 addi s1,s1,-1 # 7fffffff <_end+0x7fffddfb>
148: 00808c13 addi s8,ra,8
14c: fffc0c13 addi s8,s8,-1
150: 009c20a3 sw s1,1(s8)
154: 0080a183 lw gp,8(ra)
158: 0000a623 sw zero,12(ra)
15c: 00100413 li s0,1
160: 00c08b93 addi s7,ra,12
164: 830b8b93 addi s7,s7,-2000
168: 7c8ba823 sw s0,2000(s7)
16c: 00c0a183 lw gp,12(ra)
170: 0000a823 sw zero,16(ra)
174: fff00393 li t2,-1
178: 01008b13 addi s6,ra,16
17c: 830b0b13 addi s6,s6,-2000
180: 7c7b2823 sw t2,2000(s6)
184: 0100a183 lw gp,16(ra)
188: 00002097 auipc ra,0x2
18c: ea008093 addi ra,ra,-352 # 2028 <test_3_res>
190: 0000a023 sw zero,0(ra)
194: 00001337 lui t1,0x1
198: 23430313 addi t1,t1,564 # 1234 <fromhost+0x134>
19c: 00008a93 mv s5,ra
1a0: 830a8a93 addi s5,s5,-2000
1a4: 7c6aa823 sw t1,2000(s5)
1a8: 0000a403 lw s0,0(ra)
1ac: 0000a223 sw zero,4(ra)
1b0: 800002b7 lui t0,0x80000
1b4: 00408a13 addi s4,ra,4
1b8: 000a0a13 mv s4,s4
1bc: 005a2023 sw t0,0(s4)
1c0: 0040a403 lw s0,4(ra)
1c4: 0000a423 sw zero,8(ra)
1c8: fffff237 lui tp,0xfffff
1cc: dcc20213 addi tp,tp,-564 # ffffedcc <_end+0xffffcbc8>
1d0: 00808993 addi s3,ra,8
1d4: 83098993 addi s3,s3,-2000
1d8: 7c49a823 sw tp,2000(s3)
1dc: 0080a403 lw s0,8(ra)
1e0: 0000a623 sw zero,12(ra)
1e4: fff00193 li gp,-1
1e8: 00c08913 addi s2,ra,12
1ec: 00190913 addi s2,s2,1
1f0: fe392fa3 sw gp,-1(s2)
1f4: 00c0a403 lw s0,12(ra)
1f8: 0000a823 sw zero,16(ra)
1fc: 80100113 li sp,-2047
200: 01008893 addi a7,ra,16
204: 00088893 mv a7,a7
208: 0028a023 sw sp,0(a7)
20c: 0100a403 lw s0,16(ra)
210: 00002117 auipc sp,0x2
214: e2c10113 addi sp,sp,-468 # 203c <test_4_res>
218: 00012023 sw zero,0(sp)
21c: ffe00093 li ra,-2
220: 00010813 mv a6,sp
224: fff80813 addi a6,a6,-1
228: 001820a3 sw ra,1(a6)
22c: 00012203 lw tp,0(sp)
230: 00012223 sw zero,4(sp)
234: fff00013 li zero,-1
238: 00410793 addi a5,sp,4
23c: 7d078793 addi a5,a5,2000
240: 8207a823 sw zero,-2000(a5)
244: 00412203 lw tp,4(sp)
248: 00012423 sw zero,8(sp)
24c: 00100f93 li t6,1
250: 00810713 addi a4,sp,8
254: 00070713 mv a4,a4
258: 01f72023 sw t6,0(a4)
25c: 00812203 lw tp,8(sp)
260: 00012623 sw zero,12(sp)
264: 00000f13 li t5,0
268: 00c10693 addi a3,sp,12
26c: 00168693 addi a3,a3,1
270: ffe6afa3 sw t5,-1(a3)
274: 00c12203 lw tp,12(sp)
278: 00012823 sw zero,16(sp)
27c: 7ff00e93 li t4,2047
280: 01010613 addi a2,sp,16
284: 7d060613 addi a2,a2,2000
288: 83d62823 sw t4,-2000(a2)
28c: 01012203 lw tp,16(sp)
290: 00002097 auipc ra,0x2
294: dc008093 addi ra,ra,-576 # 2050 <test_5_res>
298: 0000a023 sw zero,0(ra)
29c: 00000e13 li t3,0
2a0: 00008593 mv a1,ra
2a4: 83058593 addi a1,a1,-2000
2a8: 7dc5a823 sw t3,2000(a1)
2ac: 0000a183 lw gp,0(ra)
2b0: 0000a223 sw zero,4(ra)
2b4: 00001db7 lui s11,0x1
2b8: 800d8d93 addi s11,s11,-2048 # 800 <end_testcode+0x3e0>
2bc: 00408513 addi a0,ra,4
2c0: 83050513 addi a0,a0,-2000
2c4: 7db52823 sw s11,2000(a0)
2c8: 0040a183 lw gp,4(ra)
2cc: 0000a423 sw zero,8(ra)
2d0: 07654d37 lui s10,0x7654
2d4: 321d0d13 addi s10,s10,801 # 7654321 <_end+0x765211d>
2d8: 00808493 addi s1,ra,8
2dc: 83048493 addi s1,s1,-2000
2e0: 7da4a823 sw s10,2000(s1)
2e4: 0080a183 lw gp,8(ra)
2e8: 0000a623 sw zero,12(ra)
2ec: 80000cb7 lui s9,0x80000
2f0: fffc8c93 addi s9,s9,-1 # 7fffffff <_end+0x7fffddfb>
2f4: 00c08413 addi s0,ra,12
2f8: fff40413 addi s0,s0,-1
2fc: 019420a3 sw s9,1(s0)
300: 00c0a183 lw gp,12(ra)
304: 0000a823 sw zero,16(ra)
308: 00100c13 li s8,1
30c: 01008393 addi t2,ra,16
310: 83038393 addi t2,t2,-2000
314: 7d83a823 sw s8,2000(t2)
318: 0100a183 lw gp,16(ra)
31c: 00002097 auipc ra,0x2
320: d4808093 addi ra,ra,-696 # 2064 <test_6_res>
324: 0000a023 sw zero,0(ra)
328: fff00b93 li s7,-1
32c: 00008313 mv t1,ra
330: 83030313 addi t1,t1,-2000
334: 7d732823 sw s7,2000(t1)
338: 0000a403 lw s0,0(ra)
33c: 0000a223 sw zero,4(ra)
340: 00001b37 lui s6,0x1
344: 234b0b13 addi s6,s6,564 # 1234 <fromhost+0x134>
348: 00408293 addi t0,ra,4
34c: 83028293 addi t0,t0,-2000 # 7ffff830 <_end+0x7fffd62c>
350: 7d62a823 sw s6,2000(t0)
354: 0040a403 lw s0,4(ra)
358: 0000a423 sw zero,8(ra)
35c: 80000ab7 lui s5,0x80000
360: 00808213 addi tp,ra,8
364: 00020213 mv tp,tp
368: 01522023 sw s5,0(tp) # 0 <_start>
36c: 0080a403 lw s0,8(ra)
370: 0000a623 sw zero,12(ra)
374: fffffa37 lui s4,0xfffff
378: dcca0a13 addi s4,s4,-564 # ffffedcc <_end+0xffffcbc8>
37c: 00c08193 addi gp,ra,12
380: 83018193 addi gp,gp,-2000
384: 7d41a823 sw s4,2000(gp)
388: 00c0a403 lw s0,12(ra)
38c: 0000a823 sw zero,16(ra)
390: fff00993 li s3,-1
394: 01008113 addi sp,ra,16
398: 00110113 addi sp,sp,1
39c: ff312fa3 sw s3,-1(sp)
3a0: 0100a403 lw s0,16(ra)
3a4: 00002117 auipc sp,0x2
3a8: cd410113 addi sp,sp,-812 # 2078 <test_7_res>
3ac: 00012023 sw zero,0(sp)
3b0: 80100913 li s2,-2047
3b4: 00010093 mv ra,sp
3b8: 00008093 mv ra,ra
3bc: 0120a023 sw s2,0(ra)
3c0: 00012203 lw tp,0(sp)
3c4: 00012223 sw zero,4(sp)
3c8: ffe00893 li a7,-2
3cc: 00410093 addi ra,sp,4
3d0: fff08093 addi ra,ra,-1
3d4: 0110a0a3 sw a7,1(ra)
3d8: 00412203 lw tp,4(sp)
3dc: 00002297 auipc t0,0x2
3e0: c2428293 addi t0,t0,-988 # 2000 <begin_signature>
3e4: 20000337 lui t1,0x20000
3e8: 00830313 addi t1,t1,8 # 20000008 <_end+0x1fffde04>
3ec: 00532023 sw t0,0(t1)
3f0: 00002297 auipc t0,0x2
3f4: ca028293 addi t0,t0,-864 # 2090 <end_signature>
3f8: 20000337 lui t1,0x20000
3fc: 00c30313 addi t1,t1,12 # 2000000c <_end+0x1fffde08>
400: 00532023 sw t0,0(t1)
404: 00100293 li t0,1
408: 20000337 lui t1,0x20000
40c: 01030313 addi t1,t1,16 # 20000010 <_end+0x1fffde0c>
410: 00532023 sw t0,0(t1)
414: 00000013 nop
418: 00100193 li gp,1
41c: 00000073 ecall
00000420 <end_testcode>:
420: 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
...
Disassembly of section .riscv.attributes:
00000000 <.riscv.attributes>:
0: 1d41 addi s10,s10,-16
2: 0000 unimp
4: 7200 flw fs0,32(a2)
6: 7369 lui t1,0xffffa
8: 01007663 bgeu zero,a6,14 <trap_vector+0x10>
c: 00000013 nop
10: 7205 lui tp,0xfffe1
12: 3376 fld ft6,376(sp)
14: 6932 flw fs2,12(sp)
16: 7032 flw ft0,44(sp)
18: 0030 addi a2,sp,8
1a: 0108 addi a0,sp,128
1c: 0b0a slli s6,s6,0x2