ysyx-workbench/am-kernels/tests/cpu-tests/build/wanshu-riscv32-nemu.txt
tracer-ysyx d08c2860da > compile NEMU
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
2024-03-24 16:26:21 +08:00

76 lines
2.9 KiB
Text

/home/xin/repo/ysyx-workbench/am-kernels/tests/cpu-tests/build/wanshu-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: 0c8000ef jal 800000d4 <_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: 0a4000ef jal 800000c8 <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: 00112e23 sw ra,28(sp)
80000040: 00000913 li s2,0
80000044: 00200413 li s0,2
80000048: 00000997 auipc s3,0x0
8000004c: 0b098993 add s3,s3,176 # 800000f8 <ans>
80000050: 01e00493 li s1,30
80000054: 00100793 li a5,1
80000058: 00000693 li a3,0
8000005c: 02f46733 rem a4,s0,a5
80000060: 00071463 bnez a4,80000068 <main+0x40>
80000064: 00f686b3 add a3,a3,a5
80000068: 00178793 add a5,a5,1
8000006c: fef418e3 bne s0,a5,8000005c <main+0x34>
80000070: 02d40c63 beq s0,a3,800000a8 <main+0x80>
80000074: 00140413 add s0,s0,1
80000078: fc941ee3 bne s0,s1,80000054 <main+0x2c>
8000007c: ffe90513 add a0,s2,-2
80000080: 00153513 seqz a0,a0
80000084: f8dff0ef jal 80000010 <check>
80000088: 01c12083 lw ra,28(sp)
8000008c: 01812403 lw s0,24(sp)
80000090: 01412483 lw s1,20(sp)
80000094: 01012903 lw s2,16(sp)
80000098: 00c12983 lw s3,12(sp)
8000009c: 00000513 li a0,0
800000a0: 02010113 add sp,sp,32
800000a4: 00008067 ret
800000a8: 00291793 sll a5,s2,0x2
800000ac: 00f987b3 add a5,s3,a5
800000b0: 0007a503 lw a0,0(a5)
800000b4: 00190913 add s2,s2,1
800000b8: 40850533 sub a0,a0,s0
800000bc: 00153513 seqz a0,a0
800000c0: f51ff0ef jal 80000010 <check>
800000c4: fb1ff06f j 80000074 <main+0x4c>
800000c8 <halt>:
800000c8: 00050513 mv a0,a0
800000cc: 00100073 ebreak
800000d0: 0000006f j 800000d0 <halt+0x8>
800000d4 <_trm_init>:
800000d4: ff010113 add sp,sp,-16
800000d8: 00000517 auipc a0,0x0
800000dc: 01c50513 add a0,a0,28 # 800000f4 <_etext>
800000e0: 00112623 sw ra,12(sp)
800000e4: f45ff0ef jal 80000028 <main>
800000e8: 00050513 mv a0,a0
800000ec: 00100073 ebreak
800000f0: 0000006f j 800000f0 <_trm_init+0x1c>