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-AND-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: f8428293 addi t0,t0,-124 # 2000 <begin_signature>
|
|
|
|
84: fff00f93 li t6,-1
|
|
|
|
88: 00000813 li a6,0
|
|
|
|
8c: 010ff033 and zero,t6,a6
|
|
|
|
90: 0002a023 sw zero,0(t0)
|
|
|
|
94: 00100f13 li t5,1
|
|
|
|
98: 80100793 li a5,-2047
|
|
|
|
9c: 00ff70b3 and ra,t5,a5
|
|
|
|
a0: 0012a223 sw ra,4(t0)
|
|
|
|
a4: 00000e93 li t4,0
|
|
|
|
a8: fff00713 li a4,-1
|
|
|
|
ac: 00eef133 and sp,t4,a4
|
|
|
|
b0: 0022a423 sw sp,8(t0)
|
|
|
|
b4: 7ff00e13 li t3,2047
|
|
|
|
b8: fffff6b7 lui a3,0xfffff
|
|
|
|
bc: dcc68693 addi a3,a3,-564 # ffffedcc <_end+0xffffcbc8>
|
|
|
|
c0: 00de71b3 and gp,t3,a3
|
|
|
|
c4: 0032a623 sw gp,12(t0)
|
|
|
|
c8: 00000d93 li s11,0
|
|
|
|
cc: 80000637 lui a2,0x80000
|
|
|
|
d0: 00cdf233 and tp,s11,a2
|
|
|
|
d4: 0042a823 sw tp,16(t0)
|
|
|
|
d8: 00002097 auipc ra,0x2
|
|
|
|
dc: f3c08093 addi ra,ra,-196 # 2014 <test_2_res>
|
|
|
|
e0: 00001d37 lui s10,0x1
|
|
|
|
e4: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x4b8>
|
|
|
|
e8: 000015b7 lui a1,0x1
|
|
|
|
ec: 23458593 addi a1,a1,564 # 1234 <fromhost+0x134>
|
|
|
|
f0: 00bd72b3 and t0,s10,a1
|
|
|
|
f4: 0050a023 sw t0,0(ra)
|
|
|
|
f8: 07654cb7 lui s9,0x7654
|
|
|
|
fc: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
|
|
|
|
100: fff00513 li a0,-1
|
|
|
|
104: 00acf333 and t1,s9,a0
|
|
|
|
108: 0060a223 sw t1,4(ra)
|
|
|
|
10c: 80000c37 lui s8,0x80000
|
|
|
|
110: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
|
|
|
|
114: 00100493 li s1,1
|
|
|
|
118: 009c73b3 and t2,s8,s1
|
|
|
|
11c: 0070a423 sw t2,8(ra)
|
|
|
|
120: 00100b93 li s7,1
|
|
|
|
124: 80000437 lui s0,0x80000
|
|
|
|
128: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
|
|
|
|
12c: 008bf433 and s0,s7,s0
|
|
|
|
130: 0080a623 sw s0,12(ra)
|
|
|
|
134: fff00b13 li s6,-1
|
|
|
|
138: 076543b7 lui t2,0x7654
|
|
|
|
13c: 32138393 addi t2,t2,801 # 7654321 <_end+0x765211d>
|
|
|
|
140: 007b74b3 and s1,s6,t2
|
|
|
|
144: 0090a823 sw s1,16(ra)
|
|
|
|
148: 00002097 auipc ra,0x2
|
|
|
|
14c: ee008093 addi ra,ra,-288 # 2028 <test_3_res>
|
|
|
|
150: 00001ab7 lui s5,0x1
|
|
|
|
154: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
|
|
|
|
158: 00001337 lui t1,0x1
|
|
|
|
15c: 80030313 addi t1,t1,-2048 # 800 <end_testcode+0x4b8>
|
|
|
|
160: 006af533 and a0,s5,t1
|
|
|
|
164: 00a0a023 sw a0,0(ra)
|
|
|
|
168: 80000a37 lui s4,0x80000
|
|
|
|
16c: 00000293 li t0,0
|
|
|
|
170: 005a75b3 and a1,s4,t0
|
|
|
|
174: 00b0a223 sw a1,4(ra)
|
|
|
|
178: fffff9b7 lui s3,0xfffff
|
|
|
|
17c: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
|
|
|
|
180: 7ff00213 li tp,2047
|
|
|
|
184: 0049f633 and a2,s3,tp
|
|
|
|
188: 00c0a423 sw a2,8(ra)
|
|
|
|
18c: fff00913 li s2,-1
|
|
|
|
190: fff00193 li gp,-1
|
|
|
|
194: 003976b3 and a3,s2,gp
|
|
|
|
198: 00d0a623 sw a3,12(ra)
|
|
|
|
19c: 80100893 li a7,-2047
|
|
|
|
1a0: 00100113 li sp,1
|
|
|
|
1a4: 0028f733 and a4,a7,sp
|
|
|
|
1a8: 00e0a823 sw a4,16(ra)
|
|
|
|
1ac: 00002117 auipc sp,0x2
|
|
|
|
1b0: e9010113 addi sp,sp,-368 # 203c <test_4_res>
|
|
|
|
1b4: 00000813 li a6,0
|
|
|
|
1b8: 00000093 li ra,0
|
|
|
|
1bc: 001877b3 and a5,a6,ra
|
|
|
|
1c0: 00f12023 sw a5,0(sp)
|
|
|
|
1c4: fff00793 li a5,-1
|
|
|
|
1c8: 00000013 nop
|
|
|
|
1cc: 0007f833 and a6,a5,zero
|
|
|
|
1d0: 01012223 sw a6,4(sp)
|
|
|
|
1d4: 00100713 li a4,1
|
|
|
|
1d8: 80100f93 li t6,-2047
|
|
|
|
1dc: 01f778b3 and a7,a4,t6
|
|
|
|
1e0: 01112423 sw a7,8(sp)
|
|
|
|
1e4: 00000693 li a3,0
|
|
|
|
1e8: fff00f13 li t5,-1
|
|
|
|
1ec: 01e6f933 and s2,a3,t5
|
|
|
|
1f0: 01212623 sw s2,12(sp)
|
|
|
|
1f4: 7ff00613 li a2,2047
|
|
|
|
1f8: fffffeb7 lui t4,0xfffff
|
|
|
|
1fc: dcce8e93 addi t4,t4,-564 # ffffedcc <_end+0xffffcbc8>
|
|
|
|
200: 01d679b3 and s3,a2,t4
|
|
|
|
204: 01312823 sw s3,16(sp)
|
|
|
|
208: 00002097 auipc ra,0x2
|
|
|
|
20c: e4808093 addi ra,ra,-440 # 2050 <test_5_res>
|
|
|
|
210: 00000593 li a1,0
|
|
|
|
214: 80000e37 lui t3,0x80000
|
|
|
|
218: 01c5fa33 and s4,a1,t3
|
|
|
|
21c: 0140a023 sw s4,0(ra)
|
|
|
|
220: 00001537 lui a0,0x1
|
|
|
|
224: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x4b8>
|
|
|
|
228: 00001db7 lui s11,0x1
|
|
|
|
22c: 234d8d93 addi s11,s11,564 # 1234 <fromhost+0x134>
|
|
|
|
230: 01b57ab3 and s5,a0,s11
|
|
|
|
234: 0150a223 sw s5,4(ra)
|
|
|
|
238: 076544b7 lui s1,0x7654
|
|
|
|
23c: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
|
|
|
|
240: fff00d13 li s10,-1
|
|
|
|
244: 01a4fb33 and s6,s1,s10
|
|
|
|
248: 0160a423 sw s6,8(ra)
|
|
|
|
24c: 80000437 lui s0,0x80000
|
|
|
|
250: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
|
|
|
|
254: 00100c93 li s9,1
|
|
|
|
258: 01947bb3 and s7,s0,s9
|
|
|
|
25c: 0170a623 sw s7,12(ra)
|
|
|
|
260: 00100393 li t2,1
|
|
|
|
264: 80000c37 lui s8,0x80000
|
|
|
|
268: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
|
|
|
|
26c: 0183fc33 and s8,t2,s8
|
|
|
|
270: 0180a823 sw s8,16(ra)
|
|
|
|
274: 00002097 auipc ra,0x2
|
|
|
|
278: df008093 addi ra,ra,-528 # 2064 <test_6_res>
|
|
|
|
27c: fff00313 li t1,-1
|
|
|
|
280: 07654bb7 lui s7,0x7654
|
|
|
|
284: 321b8b93 addi s7,s7,801 # 7654321 <_end+0x765211d>
|
|
|
|
288: 01737cb3 and s9,t1,s7
|
|
|
|
28c: 0190a023 sw s9,0(ra)
|
|
|
|
290: 000012b7 lui t0,0x1
|
|
|
|
294: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
|
|
|
|
298: 00001b37 lui s6,0x1
|
|
|
|
29c: 800b0b13 addi s6,s6,-2048 # 800 <end_testcode+0x4b8>
|
|
|
|
2a0: 0162fd33 and s10,t0,s6
|
|
|
|
2a4: 01a0a223 sw s10,4(ra)
|
|
|
|
2a8: 80000237 lui tp,0x80000
|
|
|
|
2ac: 00000a93 li s5,0
|
|
|
|
2b0: 01527db3 and s11,tp,s5
|
|
|
|
2b4: 01b0a423 sw s11,8(ra)
|
|
|
|
2b8: fffff1b7 lui gp,0xfffff
|
|
|
|
2bc: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
|
|
|
|
2c0: 7ff00a13 li s4,2047
|
|
|
|
2c4: 0141fe33 and t3,gp,s4
|
|
|
|
2c8: 01c0a623 sw t3,12(ra)
|
|
|
|
2cc: fff00113 li sp,-1
|
|
|
|
2d0: fff00993 li s3,-1
|
|
|
|
2d4: 01317eb3 and t4,sp,s3
|
|
|
|
2d8: 01d0a823 sw t4,16(ra)
|
|
|
|
2dc: 00002117 auipc sp,0x2
|
|
|
|
2e0: d9c10113 addi sp,sp,-612 # 2078 <test_7_res>
|
|
|
|
2e4: 80100093 li ra,-2047
|
|
|
|
2e8: 00100913 li s2,1
|
|
|
|
2ec: 0120ff33 and t5,ra,s2
|
|
|
|
2f0: 01e12023 sw t5,0(sp)
|
|
|
|
2f4: 00000013 nop
|
|
|
|
2f8: 00000893 li a7,0
|
|
|
|
2fc: 01107fb3 and t6,zero,a7
|
|
|
|
300: 01f12223 sw t6,4(sp)
|
|
|
|
304: 00002297 auipc t0,0x2
|
|
|
|
308: cfc28293 addi t0,t0,-772 # 2000 <begin_signature>
|
|
|
|
30c: 20000337 lui t1,0x20000
|
|
|
|
310: 00830313 addi t1,t1,8 # 20000008 <_end+0x1fffde04>
|
|
|
|
314: 00532023 sw t0,0(t1)
|
|
|
|
318: 00002297 auipc t0,0x2
|
|
|
|
31c: d7828293 addi t0,t0,-648 # 2090 <end_signature>
|
|
|
|
320: 20000337 lui t1,0x20000
|
|
|
|
324: 00c30313 addi t1,t1,12 # 2000000c <_end+0x1fffde08>
|
|
|
|
328: 00532023 sw t0,0(t1)
|
|
|
|
32c: 00100293 li t0,1
|
|
|
|
330: 20000337 lui t1,0x20000
|
|
|
|
334: 01030313 addi t1,t1,16 # 20000010 <_end+0x1fffde0c>
|
|
|
|
338: 00532023 sw t0,0(t1)
|
|
|
|
33c: 00000013 nop
|
|
|
|
340: 00100193 li gp,1
|
|
|
|
344: 00000073 ecall
|
2020-05-27 15:04:07 +00:00
|
|
|
|
2021-06-05 08:02:02 +00:00
|
|
|
00000348 <end_testcode>:
|
|
|
|
348: c0001073 unimp
|
2020-05-27 15:04:07 +00:00
|
|
|
...
|
|
|
|
|
|
|
|
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
|
|
|
|
...
|
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
|