tinyriscv/tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRC-01.elf.objdump

263 lines
9.3 KiB
Plaintext

/home/ubuntu/tinyriscv/tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRC-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: 00002797 auipc a5,0x2
80: f8478793 addi a5,a5,-124 # 2000 <begin_signature>
84: 00100093 li ra,1
88: 00000113 li sp,0
8c: 7ff101b7 lui gp,0x7ff10
90: fff18193 addi gp,gp,-1 # 7ff0ffff <_end+0x7ff0ddfb>
94: 80000237 lui tp,0x80000
98: fff00293 li t0,-1
9c: 34029073 csrw mscratch,t0
a0: 3400b0f3 csrrc ra,mscratch,ra
a4: 340290f3 csrrw ra,mscratch,t0
a8: 34013173 csrrc sp,mscratch,sp
ac: 34029173 csrrw sp,mscratch,t0
b0: 3401b1f3 csrrc gp,mscratch,gp
b4: 340291f3 csrrw gp,mscratch,t0
b8: 34023273 csrrc tp,mscratch,tp
bc: 34029273 csrrw tp,mscratch,t0
c0: 3402b2f3 csrrc t0,mscratch,t0
c4: 340012f3 csrrw t0,mscratch,zero
c8: 0007a023 sw zero,0(a5)
cc: 0017a223 sw ra,4(a5)
d0: 0027a423 sw sp,8(a5)
d4: 0037a623 sw gp,12(a5)
d8: 0047a823 sw tp,16(a5)
dc: 0057aa23 sw t0,20(a5)
e0: 00002297 auipc t0,0x2
e4: f3828293 addi t0,t0,-200 # 2018 <test_A2_res>
e8: 00100593 li a1,1
ec: 00000613 li a2,0
f0: 7ff106b7 lui a3,0x7ff10
f4: fff68693 addi a3,a3,-1 # 7ff0ffff <_end+0x7ff0ddfb>
f8: 80000737 lui a4,0x80000
fc: fff00793 li a5,-1
100: 34079073 csrw mscratch,a5
104: 3405b5f3 csrrc a1,mscratch,a1
108: 34063673 csrrc a2,mscratch,a2
10c: 3406b6f3 csrrc a3,mscratch,a3
110: 34073773 csrrc a4,mscratch,a4
114: 3407b7f3 csrrc a5,mscratch,a5
118: 34003873 csrrc a6,mscratch,zero
11c: 00b2a023 sw a1,0(t0)
120: 00c2a223 sw a2,4(t0)
124: 00d2a423 sw a3,8(t0)
128: 00e2a623 sw a4,12(t0)
12c: 00f2a823 sw a5,16(t0)
130: 0102aa23 sw a6,20(t0)
134: 00002d17 auipc s10,0x2
138: efcd0d13 addi s10,s10,-260 # 2030 <test_B_res>
13c: 12345ab7 lui s5,0x12345
140: 678a8a93 addi s5,s5,1656 # 12345678 <_end+0x12343474>
144: fff00a13 li s4,-1
148: 340a1073 csrw mscratch,s4
14c: 340abb73 csrrc s6,mscratch,s5
150: 340b3af3 csrrc s5,mscratch,s6
154: 340a1bf3 csrrw s7,mscratch,s4
158: 340bbc73 csrrc s8,mscratch,s7
15c: 34003cf3 csrrc s9,mscratch,zero
160: 015d2023 sw s5,0(s10)
164: 016d2223 sw s6,4(s10)
168: 017d2423 sw s7,8(s10)
16c: 018d2623 sw s8,12(s10)
170: 019d2823 sw s9,16(s10)
174: 00002097 auipc ra,0x2
178: ed008093 addi ra,ra,-304 # 2044 <test_C_res>
17c: 42727f37 lui t5,0x42727
180: e6ff0f13 addi t5,t5,-401 # 42726e6f <_end+0x42724c6b>
184: 340f1073 csrw mscratch,t5
188: 340f3073 csrc mscratch,t5
18c: 0000a023 sw zero,0(ra)
190: 01e0a223 sw t5,4(ra)
194: 00002117 auipc sp,0x2
198: eb810113 addi sp,sp,-328 # 204c <test_D_res>
19c: f7ff9fb7 lui t6,0xf7ff9
1a0: 818f8f93 addi t6,t6,-2024 # f7ff8818 <_end+0xf7ff6614>
1a4: 340f9073 csrw mscratch,t6
1a8: 34003073 csrc mscratch,zero
1ac: 34003073 csrc mscratch,zero
1b0: 34003ff3 csrrc t6,mscratch,zero
1b4: 00012023 sw zero,0(sp)
1b8: 01f12223 sw t6,4(sp)
1bc: 00002117 auipc sp,0x2
1c0: e9810113 addi sp,sp,-360 # 2054 <test_E_res>
1c4: fff00213 li tp,-1
1c8: 963852b7 lui t0,0x96385
1cc: 27428293 addi t0,t0,628 # 96385274 <_end+0x96383070>
1d0: 321653b7 lui t2,0x32165
1d4: 49838393 addi t2,t2,1176 # 32165498 <_end+0x32163294>
1d8: 34021073 csrw mscratch,tp
1dc: 3402b2f3 csrrc t0,mscratch,t0
1e0: 3403b3f3 csrrc t2,mscratch,t2
1e4: 34043473 csrrc s0,mscratch,s0
1e8: 00512023 sw t0,0(sp)
1ec: 00712223 sw t2,4(sp)
1f0: 00812423 sw s0,8(sp)
1f4: 00002297 auipc t0,0x2
1f8: e0c28293 addi t0,t0,-500 # 2000 <begin_signature>
1fc: 20000337 lui t1,0x20000
200: 00830313 addi t1,t1,8 # 20000008 <_end+0x1fffde04>
204: 00532023 sw t0,0(t1)
208: 00002297 auipc t0,0x2
20c: e5828293 addi t0,t0,-424 # 2060 <end_signature>
210: 20000337 lui t1,0x20000
214: 00c30313 addi t1,t1,12 # 2000000c <_end+0x1fffde08>
218: 00532023 sw t0,0(t1)
21c: 00100293 li t0,1
220: 20000337 lui t1,0x20000
224: 01030313 addi t1,t1,16 # 20000010 <_end+0x1fffde0c>
228: 00532023 sw t0,0(t1)
22c: 00000013 nop
230: 00100193 li gp,1
234: 00000073 ecall
00000238 <end_testcode>:
238: c0001073 unimp
23c: 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
2014: ffff 0xffff
2016: ffff 0xffff
00002018 <test_A2_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
202c: ffff 0xffff
202e: ffff 0xffff
00002030 <test_B_res>:
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
00002044 <test_C_res>:
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
0000204c <test_D_res>:
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
00002054 <test_E_res>:
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
00002060 <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