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

348 lines
12 KiB
Plaintext

/home/ubuntu/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-SH-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: f8828293 addi t0,t0,-120 # 2004 <test_1_res>
84: 00029023 sh zero,0(t0)
88: fff00813 li a6,-1
8c: 00028f93 mv t6,t0
90: 010f9023 sh a6,0(t6)
94: fe029f23 sh zero,-2(t0)
98: 00100793 li a5,1
9c: 00028f13 mv t5,t0
a0: feff1f23 sh a5,-2(t5)
a4: 00029123 sh zero,2(t0)
a8: 00000713 li a4,0
ac: 00028e93 mv t4,t0
b0: 00ee9123 sh a4,2(t4)
b4: fe029e23 sh zero,-4(t0)
b8: 7ff00693 li a3,2047
bc: 00028e13 mv t3,t0
c0: fede1e23 sh a3,-4(t3)
c4: 00029123 sh zero,2(t0)
c8: 00000613 li a2,0
cc: 00028d93 mv s11,t0
d0: 00cd9123 sh a2,2(s11)
d4: 00002097 auipc ra,0x2
d8: f4408093 addi ra,ra,-188 # 2018 <test_2_res>
dc: 00009223 sh zero,4(ra)
e0: 000015b7 lui a1,0x1
e4: 80058593 addi a1,a1,-2048 # 800 <end_testcode+0x4e0>
e8: 00008d13 mv s10,ra
ec: 00bd1223 sh a1,4(s10)
f0: 00009023 sh zero,0(ra)
f4: 07654537 lui a0,0x7654
f8: 32150513 addi a0,a0,801 # 7654321 <_end+0x765211d>
fc: 00008c93 mv s9,ra
100: 00ac9023 sh a0,0(s9)
104: 00009023 sh zero,0(ra)
108: 800004b7 lui s1,0x80000
10c: fff48493 addi s1,s1,-1 # 7fffffff <_end+0x7fffddfb>
110: 00008c13 mv s8,ra
114: 009c1023 sh s1,0(s8)
118: 00009023 sh zero,0(ra)
11c: 00100413 li s0,1
120: 00008b93 mv s7,ra
124: 008b9023 sh s0,0(s7)
128: fe009f23 sh zero,-2(ra)
12c: fff00393 li t2,-1
130: 00008b13 mv s6,ra
134: fe7b1f23 sh t2,-2(s6)
138: 00002097 auipc ra,0x2
13c: ef408093 addi ra,ra,-268 # 202c <test_3_res>
140: 00009123 sh zero,2(ra)
144: 00001337 lui t1,0x1
148: 23430313 addi t1,t1,564 # 1234 <fromhost+0x134>
14c: 00008a93 mv s5,ra
150: 006a9123 sh t1,2(s5)
154: fe009e23 sh zero,-4(ra)
158: 800002b7 lui t0,0x80000
15c: 00008a13 mv s4,ra
160: fe5a1e23 sh t0,-4(s4)
164: 00009123 sh zero,2(ra)
168: fffff237 lui tp,0xfffff
16c: dcc20213 addi tp,tp,-564 # ffffedcc <_end+0xffffcbc8>
170: 00008993 mv s3,ra
174: 00499123 sh tp,2(s3)
178: 00009223 sh zero,4(ra)
17c: fff00193 li gp,-1
180: 00008913 mv s2,ra
184: 00391223 sh gp,4(s2)
188: 00009023 sh zero,0(ra)
18c: 80100113 li sp,-2047
190: 00008893 mv a7,ra
194: 00289023 sh sp,0(a7)
198: 00002117 auipc sp,0x2
19c: ea810113 addi sp,sp,-344 # 2040 <test_4_res>
1a0: 00011023 sh zero,0(sp)
1a4: 00000093 li ra,0
1a8: 00010813 mv a6,sp
1ac: 00181023 sh ra,0(a6)
1b0: 00011023 sh zero,0(sp)
1b4: fff00013 li zero,-1
1b8: 00010793 mv a5,sp
1bc: 00079023 sh zero,0(a5)
1c0: fe011f23 sh zero,-2(sp)
1c4: 00100f93 li t6,1
1c8: 00010713 mv a4,sp
1cc: fff71f23 sh t6,-2(a4)
1d0: 00011123 sh zero,2(sp)
1d4: 00000f13 li t5,0
1d8: 00010693 mv a3,sp
1dc: 01e69123 sh t5,2(a3)
1e0: fe011e23 sh zero,-4(sp)
1e4: 7ff00e93 li t4,2047
1e8: 00010613 mv a2,sp
1ec: ffd61e23 sh t4,-4(a2)
1f0: 00002097 auipc ra,0x2
1f4: e6408093 addi ra,ra,-412 # 2054 <test_5_res>
1f8: 00009123 sh zero,2(ra)
1fc: 00000e13 li t3,0
200: 00008593 mv a1,ra
204: 01c59123 sh t3,2(a1)
208: 00009223 sh zero,4(ra)
20c: 00001db7 lui s11,0x1
210: 800d8d93 addi s11,s11,-2048 # 800 <end_testcode+0x4e0>
214: 00008513 mv a0,ra
218: 01b51223 sh s11,4(a0)
21c: 00009023 sh zero,0(ra)
220: 07654d37 lui s10,0x7654
224: 321d0d13 addi s10,s10,801 # 7654321 <_end+0x765211d>
228: 00008493 mv s1,ra
22c: 01a49023 sh s10,0(s1)
230: 00009023 sh zero,0(ra)
234: 80000cb7 lui s9,0x80000
238: fffc8c93 addi s9,s9,-1 # 7fffffff <_end+0x7fffddfb>
23c: 00008413 mv s0,ra
240: 01941023 sh s9,0(s0)
244: 00009023 sh zero,0(ra)
248: 00100c13 li s8,1
24c: 00008393 mv t2,ra
250: 01839023 sh s8,0(t2)
254: 00002097 auipc ra,0x2
258: e1408093 addi ra,ra,-492 # 2068 <test_6_res>
25c: fe009f23 sh zero,-2(ra)
260: fff00b93 li s7,-1
264: 00008313 mv t1,ra
268: ff731f23 sh s7,-2(t1)
26c: 00009123 sh zero,2(ra)
270: 00001b37 lui s6,0x1
274: 234b0b13 addi s6,s6,564 # 1234 <fromhost+0x134>
278: 00008293 mv t0,ra
27c: 01629123 sh s6,2(t0) # 80000002 <_end+0x7fffddfe>
280: fe009e23 sh zero,-4(ra)
284: 80000ab7 lui s5,0x80000
288: 00008213 mv tp,ra
28c: ff521e23 sh s5,-4(tp) # fffffffc <_end+0xffffddf8>
290: 00009123 sh zero,2(ra)
294: fffffa37 lui s4,0xfffff
298: dcca0a13 addi s4,s4,-564 # ffffedcc <_end+0xffffcbc8>
29c: 00008193 mv gp,ra
2a0: 01419123 sh s4,2(gp)
2a4: 00009223 sh zero,4(ra)
2a8: fff00993 li s3,-1
2ac: 00008113 mv sp,ra
2b0: 01311223 sh s3,4(sp)
2b4: 00002117 auipc sp,0x2
2b8: dc810113 addi sp,sp,-568 # 207c <test_7_res>
2bc: 00011023 sh zero,0(sp)
2c0: 80100913 li s2,-2047
2c4: 00010093 mv ra,sp
2c8: 01209023 sh s2,0(ra)
2cc: 00011023 sh zero,0(sp)
2d0: 00000893 li a7,0
2d4: 00010093 mv ra,sp
2d8: 01109023 sh a7,0(ra)
2dc: 00002297 auipc t0,0x2
2e0: d2428293 addi t0,t0,-732 # 2000 <begin_signature>
2e4: 20000337 lui t1,0x20000
2e8: 00830313 addi t1,t1,8 # 20000008 <_end+0x1fffde04>
2ec: 00532023 sw t0,0(t1)
2f0: 00002297 auipc t0,0x2
2f4: da028293 addi t0,t0,-608 # 2090 <end_signature>
2f8: 20000337 lui t1,0x20000
2fc: 00c30313 addi t1,t1,12 # 2000000c <_end+0x1fffde08>
300: 00532023 sw t0,0(t1)
304: 00100293 li t0,1
308: 20000337 lui t1,0x20000
30c: 01030313 addi t1,t1,16 # 20000010 <_end+0x1fffde0c>
310: 00532023 sw t0,0(t1)
314: 00000013 nop
318: 00100193 li gp,1
31c: 00000073 ecall
00000320 <end_testcode>:
320: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
00002004 <test_1_res>:
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
2014: ffff 0xffff
2016: ffff 0xffff
00002018 <test_2_res>:
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
2028: ffff 0xffff
202a: ffff 0xffff
0000202c <test_3_res>:
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
00002040 <test_4_res>:
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
00002054 <test_5_res>:
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
00002068 <test_6_res>:
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
2078: ffff 0xffff
207a: ffff 0xffff
0000207c <test_7_res>:
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 <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