2020-05-27 15:04:07 +00:00
|
|
|
|
2021-06-05 08:02:02 +00:00
|
|
|
/home/ubuntu/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-LW-01.elf: file format elf32-littleriscv
|
2020-05-27 15:04:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
Disassembly of section .text.init:
|
|
|
|
|
|
|
|
00000000 <_start>:
|
2021-06-05 08:02:02 +00:00
|
|
|
0: 0480006f j 48 <reset_vector>
|
2020-05-27 15:04:07 +00:00
|
|
|
|
|
|
|
00000004 <trap_vector>:
|
|
|
|
4: 34202f73 csrr t5,mcause
|
|
|
|
8: 00800f93 li t6,8
|
2021-06-05 08:02:02 +00:00
|
|
|
c: 03ff0863 beq t5,t6,3c <write_tohost>
|
2020-05-27 15:04:07 +00:00
|
|
|
10: 00900f93 li t6,9
|
2021-06-05 08:02:02 +00:00
|
|
|
14: 03ff0463 beq t5,t6,3c <write_tohost>
|
2020-05-27 15:04:07 +00:00
|
|
|
18: 00b00f93 li t6,11
|
2021-06-05 08:02:02 +00:00
|
|
|
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>
|
2020-05-27 15:04:07 +00:00
|
|
|
|
2021-06-05 08:02:02 +00:00
|
|
|
00000038 <handle_exception>:
|
|
|
|
38: 5391e193 ori gp,gp,1337
|
2020-05-27 15:04:07 +00:00
|
|
|
|
2021-06-05 08:02:02 +00:00
|
|
|
0000003c <write_tohost>:
|
|
|
|
3c: 00001f17 auipc t5,0x1
|
|
|
|
40: fc3f2223 sw gp,-60(t5) # 1000 <tohost>
|
|
|
|
44: ff9ff06f j 3c <write_tohost>
|
2020-05-27 15:04:07 +00:00
|
|
|
|
2021-06-05 08:02:02 +00:00
|
|
|
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
|
2020-05-27 15:04:07 +00:00
|
|
|
|
2021-06-05 08:02:02 +00:00
|
|
|
0000007c <begin_testcode>:
|
|
|
|
7c: 00002297 auipc t0,0x2
|
|
|
|
80: fb428293 addi t0,t0,-76 # 2030 <begin_signature>
|
|
|
|
84: 00002f97 auipc t6,0x2
|
|
|
|
88: f94f8f93 addi t6,t6,-108 # 2018 <test_data>
|
|
|
|
8c: 000fa003 lw zero,0(t6)
|
|
|
|
90: 0002a023 sw zero,0(t0)
|
|
|
|
94: 00002f17 auipc t5,0x2
|
|
|
|
98: f84f0f13 addi t5,t5,-124 # 2018 <test_data>
|
|
|
|
9c: 000f2083 lw ra,0(t5)
|
|
|
|
a0: 0012a223 sw ra,4(t0)
|
|
|
|
a4: 00002e97 auipc t4,0x2
|
|
|
|
a8: f74e8e93 addi t4,t4,-140 # 2018 <test_data>
|
|
|
|
ac: 000ea103 lw sp,0(t4)
|
|
|
|
b0: 0022a423 sw sp,8(t0)
|
|
|
|
b4: 00002e17 auipc t3,0x2
|
|
|
|
b8: f64e0e13 addi t3,t3,-156 # 2018 <test_data>
|
|
|
|
bc: ffce2183 lw gp,-4(t3)
|
|
|
|
c0: 0032a623 sw gp,12(t0)
|
|
|
|
c4: 00002d97 auipc s11,0x2
|
|
|
|
c8: f54d8d93 addi s11,s11,-172 # 2018 <test_data>
|
|
|
|
cc: 000da203 lw tp,0(s11)
|
|
|
|
d0: 0042a823 sw tp,16(t0)
|
|
|
|
d4: 00002097 auipc ra,0x2
|
|
|
|
d8: f7008093 addi ra,ra,-144 # 2044 <test_2_res>
|
|
|
|
dc: 00002d17 auipc s10,0x2
|
|
|
|
e0: f3cd0d13 addi s10,s10,-196 # 2018 <test_data>
|
|
|
|
e4: 004d2283 lw t0,4(s10)
|
|
|
|
e8: 0050a023 sw t0,0(ra)
|
|
|
|
ec: 00002c97 auipc s9,0x2
|
|
|
|
f0: f2cc8c93 addi s9,s9,-212 # 2018 <test_data>
|
|
|
|
f4: 000ca303 lw t1,0(s9)
|
|
|
|
f8: 0060a223 sw t1,4(ra)
|
|
|
|
fc: 00002c17 auipc s8,0x2
|
|
|
|
100: f1cc0c13 addi s8,s8,-228 # 2018 <test_data>
|
|
|
|
104: 000c2383 lw t2,0(s8)
|
|
|
|
108: 0070a423 sw t2,8(ra)
|
|
|
|
10c: 00002b97 auipc s7,0x2
|
|
|
|
110: f0cb8b93 addi s7,s7,-244 # 2018 <test_data>
|
|
|
|
114: 000ba403 lw s0,0(s7)
|
|
|
|
118: 0080a623 sw s0,12(ra)
|
|
|
|
11c: 00002b17 auipc s6,0x2
|
|
|
|
120: efcb0b13 addi s6,s6,-260 # 2018 <test_data>
|
|
|
|
124: 000b2483 lw s1,0(s6)
|
|
|
|
128: 0090a823 sw s1,16(ra)
|
|
|
|
12c: 00002097 auipc ra,0x2
|
|
|
|
130: f2c08093 addi ra,ra,-212 # 2058 <test_3_res>
|
|
|
|
134: 00002a97 auipc s5,0x2
|
|
|
|
138: ee4a8a93 addi s5,s5,-284 # 2018 <test_data>
|
|
|
|
13c: 000aa503 lw a0,0(s5)
|
|
|
|
140: 00a0a023 sw a0,0(ra)
|
|
|
|
144: 00002a17 auipc s4,0x2
|
|
|
|
148: ed4a0a13 addi s4,s4,-300 # 2018 <test_data>
|
|
|
|
14c: ffca2583 lw a1,-4(s4)
|
|
|
|
150: 00b0a223 sw a1,4(ra)
|
|
|
|
154: 00002997 auipc s3,0x2
|
|
|
|
158: ec498993 addi s3,s3,-316 # 2018 <test_data>
|
|
|
|
15c: 0009a603 lw a2,0(s3)
|
|
|
|
160: 00c0a423 sw a2,8(ra)
|
|
|
|
164: 00002917 auipc s2,0x2
|
|
|
|
168: eb490913 addi s2,s2,-332 # 2018 <test_data>
|
|
|
|
16c: 00492683 lw a3,4(s2)
|
|
|
|
170: 00d0a623 sw a3,12(ra)
|
|
|
|
174: 00002897 auipc a7,0x2
|
|
|
|
178: ea488893 addi a7,a7,-348 # 2018 <test_data>
|
|
|
|
17c: 0008a703 lw a4,0(a7)
|
|
|
|
180: 00e0a823 sw a4,16(ra)
|
|
|
|
184: 00002117 auipc sp,0x2
|
|
|
|
188: ee810113 addi sp,sp,-280 # 206c <test_4_res>
|
|
|
|
18c: 00002817 auipc a6,0x2
|
|
|
|
190: e8c80813 addi a6,a6,-372 # 2018 <test_data>
|
|
|
|
194: 00082783 lw a5,0(a6)
|
|
|
|
198: 00f12023 sw a5,0(sp)
|
|
|
|
19c: 00002797 auipc a5,0x2
|
|
|
|
1a0: e7c78793 addi a5,a5,-388 # 2018 <test_data>
|
|
|
|
1a4: 0007a803 lw a6,0(a5)
|
|
|
|
1a8: 01012223 sw a6,4(sp)
|
|
|
|
1ac: 00002717 auipc a4,0x2
|
|
|
|
1b0: e6c70713 addi a4,a4,-404 # 2018 <test_data>
|
|
|
|
1b4: 00072883 lw a7,0(a4)
|
|
|
|
1b8: 01112423 sw a7,8(sp)
|
|
|
|
1bc: 00002697 auipc a3,0x2
|
|
|
|
1c0: e5c68693 addi a3,a3,-420 # 2018 <test_data>
|
|
|
|
1c4: 0006a903 lw s2,0(a3)
|
|
|
|
1c8: 01212623 sw s2,12(sp)
|
|
|
|
1cc: 00002617 auipc a2,0x2
|
|
|
|
1d0: e4c60613 addi a2,a2,-436 # 2018 <test_data>
|
|
|
|
1d4: ffc62983 lw s3,-4(a2)
|
|
|
|
1d8: 01312823 sw s3,16(sp)
|
|
|
|
1dc: 00002097 auipc ra,0x2
|
|
|
|
1e0: ea408093 addi ra,ra,-348 # 2080 <test_5_res>
|
|
|
|
1e4: 00002597 auipc a1,0x2
|
|
|
|
1e8: e3458593 addi a1,a1,-460 # 2018 <test_data>
|
|
|
|
1ec: 0005aa03 lw s4,0(a1)
|
|
|
|
1f0: 0140a023 sw s4,0(ra)
|
|
|
|
1f4: 00002517 auipc a0,0x2
|
|
|
|
1f8: e2450513 addi a0,a0,-476 # 2018 <test_data>
|
|
|
|
1fc: 00452a83 lw s5,4(a0)
|
|
|
|
200: 0150a223 sw s5,4(ra)
|
|
|
|
204: 00002497 auipc s1,0x2
|
|
|
|
208: e1448493 addi s1,s1,-492 # 2018 <test_data>
|
|
|
|
20c: 0004ab03 lw s6,0(s1)
|
|
|
|
210: 0160a423 sw s6,8(ra)
|
|
|
|
214: 00002417 auipc s0,0x2
|
|
|
|
218: e0440413 addi s0,s0,-508 # 2018 <test_data>
|
|
|
|
21c: 00042b83 lw s7,0(s0)
|
|
|
|
220: 0170a623 sw s7,12(ra)
|
|
|
|
224: 00002397 auipc t2,0x2
|
|
|
|
228: df438393 addi t2,t2,-524 # 2018 <test_data>
|
|
|
|
22c: 0003ac03 lw s8,0(t2)
|
|
|
|
230: 0180a823 sw s8,16(ra)
|
|
|
|
234: 00002097 auipc ra,0x2
|
|
|
|
238: e6008093 addi ra,ra,-416 # 2094 <test_6_res>
|
|
|
|
23c: 00002317 auipc t1,0x2
|
|
|
|
240: ddc30313 addi t1,t1,-548 # 2018 <test_data>
|
|
|
|
244: 00032c83 lw s9,0(t1)
|
|
|
|
248: 0190a023 sw s9,0(ra)
|
|
|
|
24c: 00002297 auipc t0,0x2
|
|
|
|
250: dcc28293 addi t0,t0,-564 # 2018 <test_data>
|
|
|
|
254: 0002ad03 lw s10,0(t0)
|
|
|
|
258: 01a0a223 sw s10,4(ra)
|
|
|
|
25c: 00002217 auipc tp,0x2
|
|
|
|
260: dbc20213 addi tp,tp,-580 # 2018 <test_data>
|
|
|
|
264: ffc22d83 lw s11,-4(tp) # fffffffc <_end+0xffffddf8>
|
|
|
|
268: 01b0a423 sw s11,8(ra)
|
|
|
|
26c: 00002197 auipc gp,0x2
|
|
|
|
270: dac18193 addi gp,gp,-596 # 2018 <test_data>
|
|
|
|
274: 0001ae03 lw t3,0(gp)
|
|
|
|
278: 01c0a623 sw t3,12(ra)
|
|
|
|
27c: 00002117 auipc sp,0x2
|
|
|
|
280: d9c10113 addi sp,sp,-612 # 2018 <test_data>
|
|
|
|
284: 00412e83 lw t4,4(sp)
|
|
|
|
288: 01d0a823 sw t4,16(ra)
|
|
|
|
28c: 00002117 auipc sp,0x2
|
|
|
|
290: e1c10113 addi sp,sp,-484 # 20a8 <test_7_res>
|
|
|
|
294: 00002097 auipc ra,0x2
|
|
|
|
298: d8408093 addi ra,ra,-636 # 2018 <test_data>
|
|
|
|
29c: 0000af03 lw t5,0(ra)
|
|
|
|
2a0: 01e12023 sw t5,0(sp)
|
|
|
|
2a4: 00002097 auipc ra,0x2
|
|
|
|
2a8: d7408093 addi ra,ra,-652 # 2018 <test_data>
|
|
|
|
2ac: 0000af83 lw t6,0(ra)
|
|
|
|
2b0: 01f12223 sw t6,4(sp)
|
|
|
|
2b4: 00002297 auipc t0,0x2
|
|
|
|
2b8: d7c28293 addi t0,t0,-644 # 2030 <begin_signature>
|
|
|
|
2bc: 20000337 lui t1,0x20000
|
|
|
|
2c0: 00830313 addi t1,t1,8 # 20000008 <_end+0x1fffde04>
|
|
|
|
2c4: 00532023 sw t0,0(t1)
|
|
|
|
2c8: 00002297 auipc t0,0x2
|
|
|
|
2cc: df828293 addi t0,t0,-520 # 20c0 <end_signature>
|
|
|
|
2d0: 20000337 lui t1,0x20000
|
|
|
|
2d4: 00c30313 addi t1,t1,12 # 2000000c <_end+0x1fffde08>
|
|
|
|
2d8: 00532023 sw t0,0(t1)
|
|
|
|
2dc: 00100293 li t0,1
|
|
|
|
2e0: 20000337 lui t1,0x20000
|
|
|
|
2e4: 01030313 addi t1,t1,16 # 20000010 <_end+0x1fffde0c>
|
|
|
|
2e8: 00532023 sw t0,0(t1)
|
|
|
|
2ec: 00000013 nop
|
|
|
|
2f0: 00100193 li gp,1
|
|
|
|
2f4: 00000073 ecall
|
2020-05-27 15:04:07 +00:00
|
|
|
|
2021-06-05 08:02:02 +00:00
|
|
|
000002f8 <end_testcode>:
|
|
|
|
2f8: c0001073 unimp
|
|
|
|
2fc: 0000 unimp
|
2020-05-27 15:04:07 +00:00
|
|
|
...
|
|
|
|
|
|
|
|
Disassembly of section .tohost:
|
|
|
|
|
|
|
|
00001000 <tohost>:
|
|
|
|
...
|
|
|
|
|
|
|
|
00001100 <fromhost>:
|
|
|
|
...
|
|
|
|
|
|
|
|
Disassembly of section .data:
|
|
|
|
|
|
|
|
00002000 <test_data_start>:
|
|
|
|
2000: f222 fsw fs0,36(sp)
|
|
|
|
2002: 11f1 addi gp,gp,-4
|
|
|
|
2004: 44f4 lw a3,76(s1)
|
|
|
|
2006: f666f333 0xf666f333
|
|
|
|
200a: 55f5 li a1,-3
|
|
|
|
200c: 88f8 0x88f8
|
|
|
|
200e: 0aaaf777 0xaaaf777
|
|
|
|
2012: 9909 andi a0,a0,-30
|
|
|
|
2014: cc0c sw a1,24(s0)
|
|
|
|
2016: 0xeee0bbb
|
|
|
|
|
|
|
|
00002018 <test_data>:
|
|
|
|
2018: 0eee slli t4,t4,0x1b
|
|
|
|
201a: dd0d beqz a0,1f54 <fromhost+0xe54>
|
|
|
|
201c: 00f0 addi a2,sp,76
|
|
|
|
201e: 0fff 0xfff
|
|
|
|
2020: 5678 lw a4,108(a2)
|
|
|
|
2022: 1234 addi a3,sp,296
|
|
|
|
2024: def0 sw a2,124(a3)
|
|
|
|
2026: 9abc 0x9abc
|
|
|
|
2028: 3210 fld fa2,32(a2)
|
|
|
|
202a: 7654 flw fa3,44(a2)
|
|
|
|
202c: ba98 fsd fa4,48(a3)
|
|
|
|
202e: fedc fsw fa5,60(a3)
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
00002044 <test_2_res>:
|
|
|
|
2044: ffff 0xffff
|
|
|
|
2046: ffff 0xffff
|
|
|
|
2048: ffff 0xffff
|
|
|
|
204a: ffff 0xffff
|
|
|
|
204c: ffff 0xffff
|
|
|
|
204e: ffff 0xffff
|
|
|
|
2050: ffff 0xffff
|
|
|
|
2052: ffff 0xffff
|
|
|
|
2054: ffff 0xffff
|
|
|
|
2056: ffff 0xffff
|
|
|
|
|
|
|
|
00002058 <test_3_res>:
|
|
|
|
2058: ffff 0xffff
|
|
|
|
205a: ffff 0xffff
|
|
|
|
205c: ffff 0xffff
|
|
|
|
205e: ffff 0xffff
|
|
|
|
2060: ffff 0xffff
|
|
|
|
2062: ffff 0xffff
|
|
|
|
2064: ffff 0xffff
|
|
|
|
2066: ffff 0xffff
|
|
|
|
2068: ffff 0xffff
|
|
|
|
206a: ffff 0xffff
|
|
|
|
|
|
|
|
0000206c <test_4_res>:
|
|
|
|
206c: ffff 0xffff
|
|
|
|
206e: ffff 0xffff
|
|
|
|
2070: ffff 0xffff
|
|
|
|
2072: ffff 0xffff
|
|
|
|
2074: ffff 0xffff
|
|
|
|
2076: ffff 0xffff
|
|
|
|
2078: ffff 0xffff
|
|
|
|
207a: ffff 0xffff
|
|
|
|
207c: ffff 0xffff
|
|
|
|
207e: ffff 0xffff
|
|
|
|
|
|
|
|
00002080 <test_5_res>:
|
|
|
|
2080: ffff 0xffff
|
|
|
|
2082: ffff 0xffff
|
|
|
|
2084: ffff 0xffff
|
|
|
|
2086: ffff 0xffff
|
|
|
|
2088: ffff 0xffff
|
|
|
|
208a: ffff 0xffff
|
|
|
|
208c: ffff 0xffff
|
|
|
|
208e: ffff 0xffff
|
|
|
|
2090: ffff 0xffff
|
|
|
|
2092: ffff 0xffff
|
|
|
|
|
|
|
|
00002094 <test_6_res>:
|
|
|
|
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_7_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: 0000 unimp
|
|
|
|
...
|
|
|
|
|
|
|
|
000020c0 <end_signature>:
|
|
|
|
...
|
|
|
|
|
|
|
|
00002100 <begin_regstate>:
|
|
|
|
2100: 0080 addi s0,sp,64
|
|
|
|
...
|
|
|
|
|
|
|
|
00002200 <end_regstate>:
|
|
|
|
2200: 0004 0x4
|
|
|
|
...
|
2021-06-05 08:02:02 +00:00
|
|
|
|
|
|
|
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
|