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
89 lines
3.4 KiB
Text
89 lines
3.4 KiB
Text
|
|
/home/xin/repo/ysyx-workbench/am-kernels/tests/cpu-tests/build/shuixianhua-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: 0fc000ef jal 80000108 <_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: 0d8000ef jal 800000fc <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: 01512223 sw s5,4(sp)
|
|
80000044: 00112e23 sw ra,28(sp)
|
|
80000048: 00000a93 li s5,0
|
|
8000004c: 06400413 li s0,100
|
|
80000050: 06400a13 li s4,100
|
|
80000054: 00a00913 li s2,10
|
|
80000058: 00000497 auipc s1,0x0
|
|
8000005c: 0d448493 add s1,s1,212 # 8000012c <ans>
|
|
80000060: 1f400993 li s3,500
|
|
80000064: 00c0006f j 80000070 <main+0x48>
|
|
80000068: 00140413 add s0,s0,1
|
|
8000006c: 05340e63 beq s0,s3,800000c8 <main+0xa0>
|
|
80000070: 03244733 div a4,s0,s2
|
|
80000074: 03444633 div a2,s0,s4
|
|
80000078: 032466b3 rem a3,s0,s2
|
|
8000007c: 03276733 rem a4,a4,s2
|
|
80000080: 02c607b3 mul a5,a2,a2
|
|
80000084: 02d68533 mul a0,a3,a3
|
|
80000088: 02e705b3 mul a1,a4,a4
|
|
8000008c: 02c787b3 mul a5,a5,a2
|
|
80000090: 02d506b3 mul a3,a0,a3
|
|
80000094: 02e58733 mul a4,a1,a4
|
|
80000098: 00d787b3 add a5,a5,a3
|
|
8000009c: 00e787b3 add a5,a5,a4
|
|
800000a0: fc8794e3 bne a5,s0,80000068 <main+0x40>
|
|
800000a4: 002a9793 sll a5,s5,0x2
|
|
800000a8: 00f487b3 add a5,s1,a5
|
|
800000ac: 0007a503 lw a0,0(a5)
|
|
800000b0: 001a8a93 add s5,s5,1
|
|
800000b4: 40850533 sub a0,a0,s0
|
|
800000b8: 00153513 seqz a0,a0
|
|
800000bc: 00140413 add s0,s0,1
|
|
800000c0: f51ff0ef jal 80000010 <check>
|
|
800000c4: fb3416e3 bne s0,s3,80000070 <main+0x48>
|
|
800000c8: ffca8513 add a0,s5,-4
|
|
800000cc: 00153513 seqz a0,a0
|
|
800000d0: f41ff0ef jal 80000010 <check>
|
|
800000d4: 01c12083 lw ra,28(sp)
|
|
800000d8: 01812403 lw s0,24(sp)
|
|
800000dc: 01412483 lw s1,20(sp)
|
|
800000e0: 01012903 lw s2,16(sp)
|
|
800000e4: 00c12983 lw s3,12(sp)
|
|
800000e8: 00812a03 lw s4,8(sp)
|
|
800000ec: 00412a83 lw s5,4(sp)
|
|
800000f0: 00000513 li a0,0
|
|
800000f4: 02010113 add sp,sp,32
|
|
800000f8: 00008067 ret
|
|
|
|
800000fc <halt>:
|
|
800000fc: 00050513 mv a0,a0
|
|
80000100: 00100073 ebreak
|
|
80000104: 0000006f j 80000104 <halt+0x8>
|
|
|
|
80000108 <_trm_init>:
|
|
80000108: ff010113 add sp,sp,-16
|
|
8000010c: 00000517 auipc a0,0x0
|
|
80000110: 01c50513 add a0,a0,28 # 80000128 <_etext>
|
|
80000114: 00112623 sw ra,12(sp)
|
|
80000118: f11ff0ef jal 80000028 <main>
|
|
8000011c: 00050513 mv a0,a0
|
|
80000120: 00100073 ebreak
|
|
80000124: 0000006f j 80000124 <_trm_init+0x1c>
|