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

418 lines
14 KiB
Plaintext

/home/ubuntu/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-IO-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: 00002097 auipc ra,0x2
80: f8408093 addi ra,ra,-124 # 2000 <test_A1_data>
84: 00002117 auipc sp,0x2
88: fac10113 addi sp,sp,-84 # 2030 <begin_signature>
8c: 0000a183 lw gp,0(ra)
90: 00000213 li tp,0
94: 00100293 li t0,1
98: fff00313 li t1,-1
9c: 800003b7 lui t2,0x80000
a0: fff38393 addi t2,t2,-1 # 7fffffff <_end+0x7fffddfb>
a4: 80000437 lui s0,0x80000
a8: 00418233 add tp,gp,tp
ac: 005182b3 add t0,gp,t0
b0: 00618333 add t1,gp,t1
b4: 007183b3 add t2,gp,t2
b8: 00818433 add s0,gp,s0
bc: 00312023 sw gp,0(sp)
c0: 00412223 sw tp,4(sp)
c4: 00512423 sw t0,8(sp)
c8: 00612623 sw t1,12(sp)
cc: 00712823 sw t2,16(sp)
d0: 00812a23 sw s0,20(sp)
d4: 00002097 auipc ra,0x2
d8: f3008093 addi ra,ra,-208 # 2004 <test_A2_data>
dc: 00002117 auipc sp,0x2
e0: f6c10113 addi sp,sp,-148 # 2048 <test_A2_res>
e4: 0000a403 lw s0,0(ra)
e8: 00000493 li s1,0
ec: 00100513 li a0,1
f0: fff00593 li a1,-1
f4: 80000637 lui a2,0x80000
f8: fff60613 addi a2,a2,-1 # 7fffffff <_end+0x7fffddfb>
fc: 800006b7 lui a3,0x80000
100: 009404b3 add s1,s0,s1
104: 00a40533 add a0,s0,a0
108: 00b405b3 add a1,s0,a1
10c: 00c40633 add a2,s0,a2
110: 00d406b3 add a3,s0,a3
114: 00812023 sw s0,0(sp)
118: 00912223 sw s1,4(sp)
11c: 00a12423 sw a0,8(sp)
120: 00b12623 sw a1,12(sp)
124: 00c12823 sw a2,16(sp)
128: 00d12a23 sw a3,20(sp)
12c: 00002097 auipc ra,0x2
130: edc08093 addi ra,ra,-292 # 2008 <test_A3_data>
134: 00002117 auipc sp,0x2
138: f2c10113 addi sp,sp,-212 # 2060 <test_A3_res>
13c: 0000a683 lw a3,0(ra)
140: 00000713 li a4,0
144: 00100793 li a5,1
148: fff00813 li a6,-1
14c: 800008b7 lui a7,0x80000
150: fff88893 addi a7,a7,-1 # 7fffffff <_end+0x7fffddfb>
154: 80000937 lui s2,0x80000
158: 00e68733 add a4,a3,a4
15c: 00f687b3 add a5,a3,a5
160: 01068833 add a6,a3,a6
164: 011688b3 add a7,a3,a7
168: 01268933 add s2,a3,s2
16c: 00d12023 sw a3,0(sp)
170: 00e12223 sw a4,4(sp)
174: 00f12423 sw a5,8(sp)
178: 01012623 sw a6,12(sp)
17c: 01112823 sw a7,16(sp)
180: 01212a23 sw s2,20(sp)
184: 00002097 auipc ra,0x2
188: e8808093 addi ra,ra,-376 # 200c <test_A4_data>
18c: 00002117 auipc sp,0x2
190: eec10113 addi sp,sp,-276 # 2078 <test_A4_res>
194: 0000a903 lw s2,0(ra)
198: 00000993 li s3,0
19c: 00100a13 li s4,1
1a0: fff00a93 li s5,-1
1a4: 80000b37 lui s6,0x80000
1a8: fffb0b13 addi s6,s6,-1 # 7fffffff <_end+0x7fffddfb>
1ac: 80000bb7 lui s7,0x80000
1b0: 013909b3 add s3,s2,s3
1b4: 01490a33 add s4,s2,s4
1b8: 01590ab3 add s5,s2,s5
1bc: 01690b33 add s6,s2,s6
1c0: 01790bb3 add s7,s2,s7
1c4: 01212023 sw s2,0(sp)
1c8: 01312223 sw s3,4(sp)
1cc: 01412423 sw s4,8(sp)
1d0: 01512623 sw s5,12(sp)
1d4: 01612823 sw s6,16(sp)
1d8: 01712a23 sw s7,20(sp)
1dc: 00002097 auipc ra,0x2
1e0: e3408093 addi ra,ra,-460 # 2010 <test_A5_data>
1e4: 00002117 auipc sp,0x2
1e8: eac10113 addi sp,sp,-340 # 2090 <test_A5_res>
1ec: 0000ab83 lw s7,0(ra)
1f0: 00000c13 li s8,0
1f4: 00100c93 li s9,1
1f8: fff00d13 li s10,-1
1fc: 80000db7 lui s11,0x80000
200: fffd8d93 addi s11,s11,-1 # 7fffffff <_end+0x7fffddfb>
204: 80000e37 lui t3,0x80000
208: 018b8c33 add s8,s7,s8
20c: 019b8cb3 add s9,s7,s9
210: 01ab8d33 add s10,s7,s10
214: 01bb8db3 add s11,s7,s11
218: 01cb8e33 add t3,s7,t3
21c: 01712023 sw s7,0(sp)
220: 01812223 sw s8,4(sp)
224: 01912423 sw s9,8(sp)
228: 01a12623 sw s10,12(sp)
22c: 01b12823 sw s11,16(sp)
230: 01c12a23 sw t3,20(sp)
234: 00002c97 auipc s9,0x2
238: de0c8c93 addi s9,s9,-544 # 2014 <test_B_data>
23c: 00002d17 auipc s10,0x2
240: e6cd0d13 addi s10,s10,-404 # 20a8 <test_B_res>
244: 000cae03 lw t3,0(s9)
248: 00100d93 li s11,1
24c: 01be0eb3 add t4,t3,s11
250: 01be8f33 add t5,t4,s11
254: 01bf0fb3 add t6,t5,s11
258: 01bf80b3 add ra,t6,s11
25c: 01b08133 add sp,ra,s11
260: 01b101b3 add gp,sp,s11
264: 01bd2023 sw s11,0(s10)
268: 01cd2223 sw t3,4(s10)
26c: 01dd2423 sw t4,8(s10)
270: 01ed2623 sw t5,12(s10)
274: 01fd2823 sw t6,16(s10)
278: 001d2a23 sw ra,20(s10)
27c: 002d2c23 sw sp,24(s10)
280: 003d2e23 sw gp,28(s10)
284: 00002097 auipc ra,0x2
288: d9408093 addi ra,ra,-620 # 2018 <test_C_data>
28c: 00002117 auipc sp,0x2
290: e3c10113 addi sp,sp,-452 # 20c8 <test_C_res>
294: 0000ae03 lw t3,0(ra)
298: f7ff9db7 lui s11,0xf7ff9
29c: 818d8d93 addi s11,s11,-2024 # f7ff8818 <_end+0xf7ff6614>
2a0: 01be0033 add zero,t3,s11
2a4: 00012023 sw zero,0(sp)
2a8: 00002097 auipc ra,0x2
2ac: d7408093 addi ra,ra,-652 # 201c <test_D_data>
2b0: 00002117 auipc sp,0x2
2b4: e1c10113 addi sp,sp,-484 # 20cc <test_D_res>
2b8: 0000ae03 lw t3,0(ra)
2bc: f7ff9db7 lui s11,0xf7ff9
2c0: 818d8d93 addi s11,s11,-2024 # f7ff8818 <_end+0xf7ff6614>
2c4: 01be0033 add zero,t3,s11
2c8: 000002b3 add t0,zero,zero
2cc: 00012023 sw zero,0(sp)
2d0: 00512223 sw t0,4(sp)
2d4: 00002097 auipc ra,0x2
2d8: d4c08093 addi ra,ra,-692 # 2020 <test_E_data>
2dc: 00002117 auipc sp,0x2
2e0: df810113 addi sp,sp,-520 # 20d4 <test_E_res>
2e4: 0000a183 lw gp,0(ra)
2e8: 00018233 add tp,gp,zero
2ec: 000202b3 add t0,tp,zero
2f0: 00500333 add t1,zero,t0
2f4: 00030733 add a4,t1,zero
2f8: 000707b3 add a5,a4,zero
2fc: 00078833 add a6,a5,zero
300: 01000cb3 add s9,zero,a6
304: 01900d33 add s10,zero,s9
308: 000d0db3 add s11,s10,zero
30c: 00412023 sw tp,0(sp)
310: 01a12223 sw s10,4(sp)
314: 01b12423 sw s11,8(sp)
318: 00002297 auipc t0,0x2
31c: d1828293 addi t0,t0,-744 # 2030 <begin_signature>
320: 20000337 lui t1,0x20000
324: 00830313 addi t1,t1,8 # 20000008 <_end+0x1fffde04>
328: 00532023 sw t0,0(t1)
32c: 00002297 auipc t0,0x2
330: db428293 addi t0,t0,-588 # 20e0 <end_signature>
334: 20000337 lui t1,0x20000
338: 00c30313 addi t1,t1,12 # 2000000c <_end+0x1fffde08>
33c: 00532023 sw t0,0(t1)
340: 00100293 li t0,1
344: 20000337 lui t1,0x20000
348: 01030313 addi t1,t1,16 # 20000010 <_end+0x1fffde0c>
34c: 00532023 sw t0,0(t1)
350: 00000013 nop
354: 00100193 li gp,1
358: 00000073 ecall
0000035c <end_testcode>:
35c: 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
...
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