ysyx_22040000 李心杨 Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar 1 12:35:11 UTC 2024 x86_64 GNU/Linux 16:26:21 up 4 days 3:32, 2 users, load average: 0.85, 0.91, 0.95
84 lines
3.2 KiB
Text
84 lines
3.2 KiB
Text
|
|
/home/xin/repo/ysyx-workbench/am-kernels/tests/cpu-tests/build/fact-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: 0e8000ef jal 800000f4 <_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: 0c4000ef jal 800000e8 <halt>
|
|
|
|
80000028 <main>:
|
|
80000028: fe010113 add sp,sp,-32
|
|
8000002c: 00812c23 sw s0,24(sp)
|
|
80000030: 00912a23 sw s1,20(sp)
|
|
80000034: 01212823 sw s2,16(sp)
|
|
80000038: 01312623 sw s3,12(sp)
|
|
8000003c: 01412423 sw s4,8(sp)
|
|
80000040: 00112e23 sw ra,28(sp)
|
|
80000044: 00000997 auipc s3,0x0
|
|
80000048: 10898993 add s3,s3,264 # 8000014c <f>
|
|
8000004c: 00000917 auipc s2,0x0
|
|
80000050: 0cc90913 add s2,s2,204 # 80000118 <ans>
|
|
80000054: 00000493 li s1,0
|
|
80000058: 00100413 li s0,1
|
|
8000005c: 00d00a13 li s4,13
|
|
80000060: 06945263 bge s0,s1,800000c4 <main+0x9c>
|
|
80000064: 00048793 mv a5,s1
|
|
80000068: 00100713 li a4,1
|
|
8000006c: 00078693 mv a3,a5
|
|
80000070: fff78793 add a5,a5,-1
|
|
80000074: 02d70733 mul a4,a4,a3
|
|
80000078: fe879ae3 bne a5,s0,8000006c <main+0x44>
|
|
8000007c: 00092503 lw a0,0(s2)
|
|
80000080: 00e9a023 sw a4,0(s3)
|
|
80000084: 00148493 add s1,s1,1
|
|
80000088: 40e50533 sub a0,a0,a4
|
|
8000008c: 00153513 seqz a0,a0
|
|
80000090: f81ff0ef jal 80000010 <check>
|
|
80000094: 00498993 add s3,s3,4
|
|
80000098: 00490913 add s2,s2,4
|
|
8000009c: fd4492e3 bne s1,s4,80000060 <main+0x38>
|
|
800000a0: 01c12083 lw ra,28(sp)
|
|
800000a4: 01812403 lw s0,24(sp)
|
|
800000a8: 01412483 lw s1,20(sp)
|
|
800000ac: 01012903 lw s2,16(sp)
|
|
800000b0: 00c12983 lw s3,12(sp)
|
|
800000b4: 00812a03 lw s4,8(sp)
|
|
800000b8: 00000513 li a0,0
|
|
800000bc: 02010113 add sp,sp,32
|
|
800000c0: 00008067 ret
|
|
800000c4: 00092503 lw a0,0(s2)
|
|
800000c8: 0089a023 sw s0,0(s3)
|
|
800000cc: 00148493 add s1,s1,1
|
|
800000d0: fff50513 add a0,a0,-1
|
|
800000d4: 00153513 seqz a0,a0
|
|
800000d8: f39ff0ef jal 80000010 <check>
|
|
800000dc: 00498993 add s3,s3,4
|
|
800000e0: 00490913 add s2,s2,4
|
|
800000e4: f7dff06f j 80000060 <main+0x38>
|
|
|
|
800000e8 <halt>:
|
|
800000e8: 00050513 mv a0,a0
|
|
800000ec: 00100073 ebreak
|
|
800000f0: 0000006f j 800000f0 <halt+0x8>
|
|
|
|
800000f4 <_trm_init>:
|
|
800000f4: ff010113 add sp,sp,-16
|
|
800000f8: 00000517 auipc a0,0x0
|
|
800000fc: 01c50513 add a0,a0,28 # 80000114 <_etext>
|
|
80000100: 00112623 sw ra,12(sp)
|
|
80000104: f25ff0ef jal 80000028 <main>
|
|
80000108: 00050513 mv a0,a0
|
|
8000010c: 00100073 ebreak
|
|
80000110: 0000006f j 80000110 <_trm_init+0x1c>
|