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

369 lines
14 KiB
Plaintext
Raw Normal View History

/home/ubuntu/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-AUIPC-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: 00000017 auipc zero,0x0
88: 00000397 auipc t2,0x0
8c: ffc38393 addi t2,t2,-4 # 84 <begin_testcode+0x8>
90: 40700033 neg zero,t2
94: 0002a023 sw zero,0(t0)
98: 00000097 auipc ra,0x0
9c: 00000397 auipc t2,0x0
a0: ffc38393 addi t2,t2,-4 # 98 <begin_testcode+0x1c>
a4: 407080b3 sub ra,ra,t2
a8: 0012a223 sw ra,4(t0)
ac: 007ff117 auipc sp,0x7ff
b0: 00000397 auipc t2,0x0
b4: ffc38393 addi t2,t2,-4 # ac <begin_testcode+0x30>
b8: 40710133 sub sp,sp,t2
bc: 0022a423 sw sp,8(t0)
c0: 00001197 auipc gp,0x1
c4: 00000397 auipc t2,0x0
c8: ffc38393 addi t2,t2,-4 # c0 <begin_testcode+0x44>
cc: 407181b3 sub gp,gp,t2
d0: 0032a623 sw gp,12(t0)
d4: 01234217 auipc tp,0x1234
d8: 00000397 auipc t2,0x0
dc: ffc38393 addi t2,t2,-4 # d4 <begin_testcode+0x58>
e0: 40720233 sub tp,tp,t2
e4: 0042a823 sw tp,16(t0)
e8: 00002097 auipc ra,0x2
ec: f2c08093 addi ra,ra,-212 # 2014 <test_2_res>
f0: 80000297 auipc t0,0x80000
f4: 00000197 auipc gp,0x0
f8: ffc18193 addi gp,gp,-4 # f0 <begin_testcode+0x74>
fc: 403282b3 sub t0,t0,gp
100: 0050a023 sw t0,0(ra)
104: 01234317 auipc t1,0x1234
108: 00000197 auipc gp,0x0
10c: ffc18193 addi gp,gp,-4 # 104 <begin_testcode+0x88>
110: 40330333 sub t1,t1,gp
114: 0060a223 sw t1,4(ra)
118: fffff397 auipc t2,0xfffff
11c: 00000197 auipc gp,0x0
120: ffc18193 addi gp,gp,-4 # 118 <begin_testcode+0x9c>
124: 403383b3 sub t2,t2,gp
128: 0070a423 sw t2,8(ra)
12c: 00001417 auipc s0,0x1
130: 00000197 auipc gp,0x0
134: ffc18193 addi gp,gp,-4 # 12c <begin_testcode+0xb0>
138: 40340433 sub s0,s0,gp
13c: 0080a623 sw s0,12(ra)
140: 7ffff497 auipc s1,0x7ffff
144: 00000197 auipc gp,0x0
148: ffc18193 addi gp,gp,-4 # 140 <begin_testcode+0xc4>
14c: 403484b3 sub s1,s1,gp
150: 0090a823 sw s1,16(ra)
154: 00002097 auipc ra,0x2
158: ed408093 addi ra,ra,-300 # 2028 <test_3_res>
15c: 54321517 auipc a0,0x54321
160: 00000417 auipc s0,0x0
164: ffc40413 addi s0,s0,-4 # 15c <begin_testcode+0xe0>
168: 40850533 sub a0,a0,s0
16c: 00a0a023 sw a0,0(ra)
170: 00800597 auipc a1,0x800
174: 00000417 auipc s0,0x0
178: ffc40413 addi s0,s0,-4 # 170 <begin_testcode+0xf4>
17c: 408585b3 sub a1,a1,s0
180: 00b0a223 sw a1,4(ra)
184: 00000617 auipc a2,0x0
188: 00000417 auipc s0,0x0
18c: ffc40413 addi s0,s0,-4 # 184 <begin_testcode+0x108>
190: 40860633 sub a2,a2,s0
194: 00c0a423 sw a2,8(ra)
198: 007ff697 auipc a3,0x7ff
19c: 00000417 auipc s0,0x0
1a0: ffc40413 addi s0,s0,-4 # 198 <begin_testcode+0x11c>
1a4: 408686b3 sub a3,a3,s0
1a8: 00d0a623 sw a3,12(ra)
1ac: 00000717 auipc a4,0x0
1b0: 00000417 auipc s0,0x0
1b4: ffc40413 addi s0,s0,-4 # 1ac <begin_testcode+0x130>
1b8: 40870733 sub a4,a4,s0
1bc: 00e0a823 sw a4,16(ra)
1c0: 00002117 auipc sp,0x2
1c4: e7c10113 addi sp,sp,-388 # 203c <test_4_res>
1c8: 00001797 auipc a5,0x1
1cc: 00000217 auipc tp,0x0
1d0: ffc20213 addi tp,tp,-4 # 1c8 <begin_testcode+0x14c>
1d4: 404787b3 sub a5,a5,tp
1d8: 00f12023 sw a5,0(sp)
1dc: 00000817 auipc a6,0x0
1e0: 00000217 auipc tp,0x0
1e4: ffc20213 addi tp,tp,-4 # 1dc <begin_testcode+0x160>
1e8: 40480833 sub a6,a6,tp
1ec: 01012223 sw a6,4(sp)
1f0: 00000897 auipc a7,0x0
1f4: 00000217 auipc tp,0x0
1f8: ffc20213 addi tp,tp,-4 # 1f0 <begin_testcode+0x174>
1fc: 404888b3 sub a7,a7,tp
200: 01112423 sw a7,8(sp)
204: 007ff917 auipc s2,0x7ff
208: 00000217 auipc tp,0x0
20c: ffc20213 addi tp,tp,-4 # 204 <begin_testcode+0x188>
210: 40490933 sub s2,s2,tp
214: 01212623 sw s2,12(sp)
218: 00001997 auipc s3,0x1
21c: 00000217 auipc tp,0x0
220: ffc20213 addi tp,tp,-4 # 218 <begin_testcode+0x19c>
224: 404989b3 sub s3,s3,tp
228: 01312823 sw s3,16(sp)
22c: 00002097 auipc ra,0x2
230: e2408093 addi ra,ra,-476 # 2050 <test_5_res>
234: 01234a17 auipc s4,0x1234
238: 00000197 auipc gp,0x0
23c: ffc18193 addi gp,gp,-4 # 234 <begin_testcode+0x1b8>
240: 403a0a33 sub s4,s4,gp
244: 0140a023 sw s4,0(ra)
248: 80000a97 auipc s5,0x80000
24c: 00000197 auipc gp,0x0
250: ffc18193 addi gp,gp,-4 # 248 <begin_testcode+0x1cc>
254: 403a8ab3 sub s5,s5,gp
258: 0150a223 sw s5,4(ra)
25c: 01234b17 auipc s6,0x1234
260: 00000197 auipc gp,0x0
264: ffc18193 addi gp,gp,-4 # 25c <begin_testcode+0x1e0>
268: 403b0b33 sub s6,s6,gp
26c: 0160a423 sw s6,8(ra)
270: fffffb97 auipc s7,0xfffff
274: 00000197 auipc gp,0x0
278: ffc18193 addi gp,gp,-4 # 270 <begin_testcode+0x1f4>
27c: 403b8bb3 sub s7,s7,gp
280: 0170a623 sw s7,12(ra)
284: 00001c17 auipc s8,0x1
288: 00000197 auipc gp,0x0
28c: ffc18193 addi gp,gp,-4 # 284 <begin_testcode+0x208>
290: 403c0c33 sub s8,s8,gp
294: 0180a823 sw s8,16(ra)
298: 00002097 auipc ra,0x2
29c: dcc08093 addi ra,ra,-564 # 2064 <test_6_res>
2a0: 7ffffc97 auipc s9,0x7ffff
2a4: 00000417 auipc s0,0x0
2a8: ffc40413 addi s0,s0,-4 # 2a0 <begin_testcode+0x224>
2ac: 408c8cb3 sub s9,s9,s0
2b0: 0190a023 sw s9,0(ra)
2b4: 54321d17 auipc s10,0x54321
2b8: 00000417 auipc s0,0x0
2bc: ffc40413 addi s0,s0,-4 # 2b4 <begin_testcode+0x238>
2c0: 408d0d33 sub s10,s10,s0
2c4: 01a0a223 sw s10,4(ra)
2c8: 00800d97 auipc s11,0x800
2cc: 00000417 auipc s0,0x0
2d0: ffc40413 addi s0,s0,-4 # 2c8 <begin_testcode+0x24c>
2d4: 408d8db3 sub s11,s11,s0
2d8: 01b0a423 sw s11,8(ra)
2dc: 00000e17 auipc t3,0x0
2e0: 00000417 auipc s0,0x0
2e4: ffc40413 addi s0,s0,-4 # 2dc <begin_testcode+0x260>
2e8: 408e0e33 sub t3,t3,s0
2ec: 01c0a623 sw t3,12(ra)
2f0: 007ffe97 auipc t4,0x7ff
2f4: 00000417 auipc s0,0x0
2f8: ffc40413 addi s0,s0,-4 # 2f0 <begin_testcode+0x274>
2fc: 408e8eb3 sub t4,t4,s0
300: 01d0a823 sw t4,16(ra)
304: 00002117 auipc sp,0x2
308: d7410113 addi sp,sp,-652 # 2078 <test_7_res>
30c: 00000f17 auipc t5,0x0
310: 00000217 auipc tp,0x0
314: ffc20213 addi tp,tp,-4 # 30c <begin_testcode+0x290>
318: 404f0f33 sub t5,t5,tp
31c: 01e12023 sw t5,0(sp)
320: 00001f97 auipc t6,0x1
324: 00000217 auipc tp,0x0
328: ffc20213 addi tp,tp,-4 # 320 <begin_testcode+0x2a4>
32c: 404f8fb3 sub t6,t6,tp
330: 01f12223 sw t6,4(sp)
334: 00002297 auipc t0,0x2
338: ccc28293 addi t0,t0,-820 # 2000 <begin_signature>
33c: 20000337 lui t1,0x20000
340: 00830313 addi t1,t1,8 # 20000008 <_end+0x1fffde04>
344: 00532023 sw t0,0(t1)
348: 00002297 auipc t0,0x2
34c: d4828293 addi t0,t0,-696 # 2090 <end_signature>
350: 20000337 lui t1,0x20000
354: 00c30313 addi t1,t1,12 # 2000000c <_end+0x1fffde08>
358: 00532023 sw t0,0(t1)
35c: 00100293 li t0,1
360: 20000337 lui t1,0x20000
364: 01030313 addi t1,t1,16 # 20000010 <_end+0x1fffde0c>
368: 00532023 sw t0,0(t1)
36c: 00000013 nop
370: 00100193 li gp,1
374: 00000073 ecall
00000378 <end_testcode>:
378: c0001073 unimp
37c: 0000 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