ysyx-workbench/am-kernels/tests/cpu-tests/build/fib-riscv32-nemu.txt

68 lines
2.5 KiB
Text
Raw Normal View History

/home/xin/repo/ysyx-workbench/am-kernels/tests/cpu-tests/build/fib-riscv32-nemu.elf: file format elf32-littleriscv
Disassembly of section .text:
80000000 <_start>:
80000000: 00000413 li s0,0
80000004: 00009117 auipc sp,0x9
80000008: ffc10113 add sp,sp,-4 # 80009000 <_end>
8000000c: 0a4000ef jal 800000b0 <_trm_init>
80000010 <check>:
80000010: 00050463 beqz a0,80000018 <check+0x8>
80000014: 00008067 ret
80000018: ff010113 add sp,sp,-16
8000001c: 00100513 li a0,1
80000020: 00112623 sw ra,12(sp)
80000024: 080000ef jal 800000a4 <halt>
80000028 <main>:
80000028: ff010113 add sp,sp,-16
8000002c: 00812423 sw s0,8(sp)
80000030: 00912223 sw s1,4(sp)
80000034: 01212023 sw s2,0(sp)
80000038: 00112623 sw ra,12(sp)
8000003c: 00000417 auipc s0,0x0
80000040: 13840413 add s0,s0,312 # 80000174 <fib>
80000044: 00000497 auipc s1,0x0
80000048: 09848493 add s1,s1,152 # 800000dc <ans+0x8>
8000004c: 00000917 auipc s2,0x0
80000050: 1c090913 add s2,s2,448 # 8000020c <fib+0x98>
80000054: 00042703 lw a4,0(s0)
80000058: 00442783 lw a5,4(s0)
8000005c: 0004a503 lw a0,0(s1)
80000060: 00440413 add s0,s0,4
80000064: 00e787b3 add a5,a5,a4
80000068: 40f50533 sub a0,a0,a5
8000006c: 00f42223 sw a5,4(s0)
80000070: 00153513 seqz a0,a0
80000074: f9dff0ef jal 80000010 <check>
80000078: 00448493 add s1,s1,4
8000007c: fd241ce3 bne s0,s2,80000054 <main+0x2c>
80000080: 00100513 li a0,1
80000084: f8dff0ef jal 80000010 <check>
80000088: 00c12083 lw ra,12(sp)
8000008c: 00812403 lw s0,8(sp)
80000090: 00412483 lw s1,4(sp)
80000094: 00012903 lw s2,0(sp)
80000098: 00000513 li a0,0
8000009c: 01010113 add sp,sp,16
800000a0: 00008067 ret
800000a4 <halt>:
800000a4: 00050513 mv a0,a0
800000a8: 00100073 ebreak
800000ac: 0000006f j 800000ac <halt+0x8>
800000b0 <_trm_init>:
800000b0: ff010113 add sp,sp,-16
800000b4: 00000517 auipc a0,0x0
800000b8: 01c50513 add a0,a0,28 # 800000d0 <_etext>
800000bc: 00112623 sw ra,12(sp)
800000c0: f69ff0ef jal 80000028 <main>
800000c4: 00050513 mv a0,a0
800000c8: 00100073 ebreak
800000cc: 0000006f j 800000cc <_trm_init+0x1c>