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

476 lines
19 KiB
Plaintext

/home/ubuntu/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-JALR-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: 0000dfb7 lui t6,0xd
88: cccf8f93 addi t6,t6,-820 # cccc <_end+0xaac8>
8c: 00000817 auipc a6,0x0
90: 01480813 addi a6,a6,20 # a0 <begin_testcode+0x24>
94: 00080067 jr a6
98: 00012fb7 lui t6,0x12
9c: 3abf8f93 addi t6,t6,939 # 123ab <_end+0x101a7>
a0: 01f2a023 sw t6,0(t0)
a4: 0000df37 lui t5,0xd
a8: cccf0f13 addi t5,t5,-820 # cccc <_end+0xaac8>
ac: 00000797 auipc a5,0x0
b0: 01378793 addi a5,a5,19 # bf <begin_testcode+0x43>
b4: 001780e7 jalr 1(a5)
b8: 00012f37 lui t5,0x12
bc: 3abf0f13 addi t5,t5,939 # 123ab <_end+0x101a7>
c0: 01e2a223 sw t5,4(t0)
c4: 0080006f j cc <begin_testcode+0x50>
c8: 0200006f j e8 <begin_testcode+0x6c>
cc: 0000deb7 lui t4,0xd
d0: ccce8e93 addi t4,t4,-820 # cccc <_end+0xaac8>
d4: 00000717 auipc a4,0x0
d8: ff370713 addi a4,a4,-13 # c7 <begin_testcode+0x4b>
dc: 00170167 jalr sp,1(a4)
e0: 00012eb7 lui t4,0x12
e4: 3abe8e93 addi t4,t4,939 # 123ab <_end+0x101a7>
e8: 01d2a423 sw t4,8(t0)
ec: 0000de37 lui t3,0xd
f0: ccce0e13 addi t3,t3,-820 # cccc <_end+0xaac8>
f4: 00000697 auipc a3,0x0
f8: 01068693 addi a3,a3,16 # 104 <begin_testcode+0x88>
fc: 004681e7 jalr gp,4(a3)
100: 00012e37 lui t3,0x12
104: 3abe0e13 addi t3,t3,939 # 123ab <_end+0x101a7>
108: 01c2a623 sw t3,12(t0)
10c: 0000ddb7 lui s11,0xd
110: cccd8d93 addi s11,s11,-820 # cccc <_end+0xaac8>
114: 00000617 auipc a2,0x0
118: 01260613 addi a2,a2,18 # 126 <begin_testcode+0xaa>
11c: 00260267 jalr tp,2(a2)
120: 00012db7 lui s11,0x12
124: 3abd8d93 addi s11,s11,939 # 123ab <_end+0x101a7>
128: 01b2a823 sw s11,16(t0)
12c: 00002097 auipc ra,0x2
130: ee808093 addi ra,ra,-280 # 2014 <test_2_res>
134: 0000dd37 lui s10,0xd
138: cccd0d13 addi s10,s10,-820 # cccc <_end+0xaac8>
13c: 00000597 auipc a1,0x0
140: 01058593 addi a1,a1,16 # 14c <begin_testcode+0xd0>
144: 004582e7 jalr t0,4(a1)
148: 00012d37 lui s10,0x12
14c: 3abd0d13 addi s10,s10,939 # 123ab <_end+0x101a7>
150: 01a0a023 sw s10,0(ra)
154: 0000dcb7 lui s9,0xd
158: cccc8c93 addi s9,s9,-820 # cccc <_end+0xaac8>
15c: 00000517 auipc a0,0x0
160: 01150513 addi a0,a0,17 # 16d <begin_testcode+0xf1>
164: 00350367 jalr t1,3(a0)
168: 00012cb7 lui s9,0x12
16c: 3abc8c93 addi s9,s9,939 # 123ab <_end+0x101a7>
170: 0190a223 sw s9,4(ra)
174: 0080006f j 17c <begin_testcode+0x100>
178: 0200006f j 198 <begin_testcode+0x11c>
17c: 0000dc37 lui s8,0xd
180: cccc0c13 addi s8,s8,-820 # cccc <_end+0xaac8>
184: 00000497 auipc s1,0x0
188: ff248493 addi s1,s1,-14 # 176 <begin_testcode+0xfa>
18c: 002483e7 jalr t2,2(s1)
190: 00012c37 lui s8,0x12
194: 3abc0c13 addi s8,s8,939 # 123ab <_end+0x101a7>
198: 0180a423 sw s8,8(ra)
19c: 0000dbb7 lui s7,0xd
1a0: cccb8b93 addi s7,s7,-820 # cccc <_end+0xaac8>
1a4: 00000417 auipc s0,0x0
1a8: 01440413 addi s0,s0,20 # 1b8 <begin_testcode+0x13c>
1ac: 00040467 jalr s0,s0
1b0: 00012bb7 lui s7,0x12
1b4: 3abb8b93 addi s7,s7,939 # 123ab <_end+0x101a7>
1b8: 0170a623 sw s7,12(ra)
1bc: 0000db37 lui s6,0xd
1c0: cccb0b13 addi s6,s6,-820 # cccc <_end+0xaac8>
1c4: 00000397 auipc t2,0x0
1c8: 01338393 addi t2,t2,19 # 1d7 <begin_testcode+0x15b>
1cc: 001384e7 jalr s1,1(t2)
1d0: 00012b37 lui s6,0x12
1d4: 3abb0b13 addi s6,s6,939 # 123ab <_end+0x101a7>
1d8: 0160a823 sw s6,16(ra)
1dc: 00002097 auipc ra,0x2
1e0: e4c08093 addi ra,ra,-436 # 2028 <test_3_res>
1e4: 0000dab7 lui s5,0xd
1e8: ccca8a93 addi s5,s5,-820 # cccc <_end+0xaac8>
1ec: 00000317 auipc t1,0x0
1f0: 01330313 addi t1,t1,19 # 1ff <begin_testcode+0x183>
1f4: 00130567 jalr a0,1(t1)
1f8: 00012ab7 lui s5,0x12
1fc: 3aba8a93 addi s5,s5,939 # 123ab <_end+0x101a7>
200: 0150a023 sw s5,0(ra)
204: 0000da37 lui s4,0xd
208: ccca0a13 addi s4,s4,-820 # cccc <_end+0xaac8>
20c: 00000297 auipc t0,0x0
210: 01028293 addi t0,t0,16 # 21c <begin_testcode+0x1a0>
214: 004285e7 jalr a1,4(t0)
218: 00012a37 lui s4,0x12
21c: 3aba0a13 addi s4,s4,939 # 123ab <_end+0x101a7>
220: 0140a223 sw s4,4(ra)
224: 0080006f j 22c <begin_testcode+0x1b0>
228: 0200006f j 248 <begin_testcode+0x1cc>
22c: 0000d9b7 lui s3,0xd
230: ccc98993 addi s3,s3,-820 # cccc <_end+0xaac8>
234: 00000217 auipc tp,0x0
238: ff220213 addi tp,tp,-14 # 226 <begin_testcode+0x1aa>
23c: 00220667 jalr a2,2(tp) # 0 <_start>
240: 000129b7 lui s3,0x12
244: 3ab98993 addi s3,s3,939 # 123ab <_end+0x101a7>
248: 0130a423 sw s3,8(ra)
24c: 0000d937 lui s2,0xd
250: ccc90913 addi s2,s2,-820 # cccc <_end+0xaac8>
254: 00000197 auipc gp,0x0
258: 01018193 addi gp,gp,16 # 264 <begin_testcode+0x1e8>
25c: 004186e7 jalr a3,4(gp)
260: 00012937 lui s2,0x12
264: 3ab90913 addi s2,s2,939 # 123ab <_end+0x101a7>
268: 0120a623 sw s2,12(ra)
26c: 0000d8b7 lui a7,0xd
270: ccc88893 addi a7,a7,-820 # cccc <_end+0xaac8>
274: 00000117 auipc sp,0x0
278: 01110113 addi sp,sp,17 # 285 <begin_testcode+0x209>
27c: 00310767 jalr a4,3(sp)
280: 000128b7 lui a7,0x12
284: 3ab88893 addi a7,a7,939 # 123ab <_end+0x101a7>
288: 0110a823 sw a7,16(ra)
28c: 00002117 auipc sp,0x2
290: db010113 addi sp,sp,-592 # 203c <test_4_res>
294: 0000d837 lui a6,0xd
298: ccc80813 addi a6,a6,-820 # cccc <_end+0xaac8>
29c: 00000097 auipc ra,0x0
2a0: 01208093 addi ra,ra,18 # 2ae <begin_testcode+0x232>
2a4: 002087e7 jalr a5,2(ra)
2a8: 00012837 lui a6,0x12
2ac: 3ab80813 addi a6,a6,939 # 123ab <_end+0x101a7>
2b0: 01012023 sw a6,0(sp)
2b4: 0000d7b7 lui a5,0xd
2b8: ccc78793 addi a5,a5,-820 # cccc <_end+0xaac8>
2bc: 00000097 auipc ra,0x0
2c0: 01408093 addi ra,ra,20 # 2d0 <begin_testcode+0x254>
2c4: 00008867 jalr a6,ra
2c8: 000127b7 lui a5,0x12
2cc: 3ab78793 addi a5,a5,939 # 123ab <_end+0x101a7>
2d0: 00f12223 sw a5,4(sp)
2d4: 0080006f j 2dc <begin_testcode+0x260>
2d8: 0200006f j 2f8 <begin_testcode+0x27c>
2dc: 0000d737 lui a4,0xd
2e0: ccc70713 addi a4,a4,-820 # cccc <_end+0xaac8>
2e4: 00000f97 auipc t6,0x0
2e8: ff3f8f93 addi t6,t6,-13 # 2d7 <begin_testcode+0x25b>
2ec: 001f88e7 jalr a7,1(t6)
2f0: 00012737 lui a4,0x12
2f4: 3ab70713 addi a4,a4,939 # 123ab <_end+0x101a7>
2f8: 00e12423 sw a4,8(sp)
2fc: 0000d6b7 lui a3,0xd
300: ccc68693 addi a3,a3,-820 # cccc <_end+0xaac8>
304: 00000f17 auipc t5,0x0
308: 013f0f13 addi t5,t5,19 # 317 <begin_testcode+0x29b>
30c: 001f0967 jalr s2,1(t5)
310: 000126b7 lui a3,0x12
314: 3ab68693 addi a3,a3,939 # 123ab <_end+0x101a7>
318: 00d12623 sw a3,12(sp)
31c: 0000d637 lui a2,0xd
320: ccc60613 addi a2,a2,-820 # cccc <_end+0xaac8>
324: 00000e97 auipc t4,0x0
328: 010e8e93 addi t4,t4,16 # 334 <begin_testcode+0x2b8>
32c: 004e89e7 jalr s3,4(t4)
330: 00012637 lui a2,0x12
334: 3ab60613 addi a2,a2,939 # 123ab <_end+0x101a7>
338: 00c12823 sw a2,16(sp)
33c: 00002097 auipc ra,0x2
340: d1408093 addi ra,ra,-748 # 2050 <test_5_res>
344: 0000d5b7 lui a1,0xd
348: ccc58593 addi a1,a1,-820 # cccc <_end+0xaac8>
34c: 00000e17 auipc t3,0x0
350: 012e0e13 addi t3,t3,18 # 35e <begin_testcode+0x2e2>
354: 002e0a67 jalr s4,2(t3)
358: 000125b7 lui a1,0x12
35c: 3ab58593 addi a1,a1,939 # 123ab <_end+0x101a7>
360: 00b0a023 sw a1,0(ra)
364: 0000d537 lui a0,0xd
368: ccc50513 addi a0,a0,-820 # cccc <_end+0xaac8>
36c: 00000d97 auipc s11,0x0
370: 010d8d93 addi s11,s11,16 # 37c <begin_testcode+0x300>
374: 004d8ae7 jalr s5,4(s11)
378: 00012537 lui a0,0x12
37c: 3ab50513 addi a0,a0,939 # 123ab <_end+0x101a7>
380: 00a0a223 sw a0,4(ra)
384: 0080006f j 38c <begin_testcode+0x310>
388: 0200006f j 3a8 <begin_testcode+0x32c>
38c: 0000d4b7 lui s1,0xd
390: ccc48493 addi s1,s1,-820 # cccc <_end+0xaac8>
394: 00000d17 auipc s10,0x0
398: ff1d0d13 addi s10,s10,-15 # 385 <begin_testcode+0x309>
39c: 003d0b67 jalr s6,3(s10)
3a0: 000124b7 lui s1,0x12
3a4: 3ab48493 addi s1,s1,939 # 123ab <_end+0x101a7>
3a8: 0090a423 sw s1,8(ra)
3ac: 0000d437 lui s0,0xd
3b0: ccc40413 addi s0,s0,-820 # cccc <_end+0xaac8>
3b4: 00000c97 auipc s9,0x0
3b8: 012c8c93 addi s9,s9,18 # 3c6 <begin_testcode+0x34a>
3bc: 002c8be7 jalr s7,2(s9)
3c0: 00012437 lui s0,0x12
3c4: 3ab40413 addi s0,s0,939 # 123ab <_end+0x101a7>
3c8: 0080a623 sw s0,12(ra)
3cc: 0000d3b7 lui t2,0xd
3d0: ccc38393 addi t2,t2,-820 # cccc <_end+0xaac8>
3d4: 00000c17 auipc s8,0x0
3d8: 014c0c13 addi s8,s8,20 # 3e8 <begin_testcode+0x36c>
3dc: 000c0c67 jalr s8,s8
3e0: 000123b7 lui t2,0x12
3e4: 3ab38393 addi t2,t2,939 # 123ab <_end+0x101a7>
3e8: 0070a823 sw t2,16(ra)
3ec: 00002097 auipc ra,0x2
3f0: c7808093 addi ra,ra,-904 # 2064 <test_6_res>
3f4: 0000d337 lui t1,0xd
3f8: ccc30313 addi t1,t1,-820 # cccc <_end+0xaac8>
3fc: 00000b97 auipc s7,0x0
400: 013b8b93 addi s7,s7,19 # 40f <begin_testcode+0x393>
404: 001b8ce7 jalr s9,1(s7)
408: 00012337 lui t1,0x12
40c: 3ab30313 addi t1,t1,939 # 123ab <_end+0x101a7>
410: 0060a023 sw t1,0(ra)
414: 0000d2b7 lui t0,0xd
418: ccc28293 addi t0,t0,-820 # cccc <_end+0xaac8>
41c: 00000b17 auipc s6,0x0
420: 013b0b13 addi s6,s6,19 # 42f <begin_testcode+0x3b3>
424: 001b0d67 jalr s10,1(s6)
428: 000122b7 lui t0,0x12
42c: 3ab28293 addi t0,t0,939 # 123ab <_end+0x101a7>
430: 0050a223 sw t0,4(ra)
434: 0080006f j 43c <begin_testcode+0x3c0>
438: 0200006f j 458 <begin_testcode+0x3dc>
43c: 0000d237 lui tp,0xd
440: ccc20213 addi tp,tp,-820 # cccc <_end+0xaac8>
444: 00000a97 auipc s5,0x0
448: ff0a8a93 addi s5,s5,-16 # 434 <begin_testcode+0x3b8>
44c: 004a8de7 jalr s11,4(s5)
450: 00012237 lui tp,0x12
454: 3ab20213 addi tp,tp,939 # 123ab <_end+0x101a7>
458: 0040a423 sw tp,8(ra)
45c: 0000d1b7 lui gp,0xd
460: ccc18193 addi gp,gp,-820 # cccc <_end+0xaac8>
464: 00000a17 auipc s4,0x0
468: 012a0a13 addi s4,s4,18 # 476 <begin_testcode+0x3fa>
46c: 002a0e67 jalr t3,2(s4)
470: 000121b7 lui gp,0x12
474: 3ab18193 addi gp,gp,939 # 123ab <_end+0x101a7>
478: 0030a623 sw gp,12(ra)
47c: 0000d137 lui sp,0xd
480: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
484: 00000997 auipc s3,0x0
488: 01098993 addi s3,s3,16 # 494 <begin_testcode+0x418>
48c: 00498ee7 jalr t4,4(s3)
490: 00012137 lui sp,0x12
494: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
498: 0020a823 sw sp,16(ra)
49c: 00002117 auipc sp,0x2
4a0: bdc10113 addi sp,sp,-1060 # 2078 <test_7_res>
4a4: 0000d0b7 lui ra,0xd
4a8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4ac: 00000917 auipc s2,0x0
4b0: 01190913 addi s2,s2,17 # 4bd <begin_testcode+0x441>
4b4: 00390f67 jalr t5,3(s2)
4b8: 000120b7 lui ra,0x12
4bc: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4c0: 00112023 sw ra,0(sp)
4c4: 0000d037 lui zero,0xd
4c8: ccc00013 li zero,-820
4cc: 00000897 auipc a7,0x0
4d0: 01288893 addi a7,a7,18 # 4de <begin_testcode+0x462>
4d4: 00288fe7 jalr t6,2(a7)
4d8: 00012037 lui zero,0x12
4dc: 3ab00013 li zero,939
4e0: 00012223 sw zero,4(sp)
4e4: 00002297 auipc t0,0x2
4e8: b1c28293 addi t0,t0,-1252 # 2000 <begin_signature>
4ec: 20000337 lui t1,0x20000
4f0: 00830313 addi t1,t1,8 # 20000008 <_end+0x1fffde04>
4f4: 00532023 sw t0,0(t1)
4f8: 00002297 auipc t0,0x2
4fc: b9828293 addi t0,t0,-1128 # 2090 <end_signature>
500: 20000337 lui t1,0x20000
504: 00c30313 addi t1,t1,12 # 2000000c <_end+0x1fffde08>
508: 00532023 sw t0,0(t1)
50c: 00100293 li t0,1
510: 20000337 lui t1,0x20000
514: 01030313 addi t1,t1,16 # 20000010 <_end+0x1fffde0c>
518: 00532023 sw t0,0(t1)
51c: 00000013 nop
520: 00100193 li gp,1
524: 00000073 ecall
00000528 <end_testcode>:
528: 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