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

107 lines
4.1 KiB
Text
Raw Normal View History

/home/xin/repo/ysyx-workbench/am-kernels/tests/cpu-tests/build/select-sort-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: 138000ef jal 80000144 <_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: 114000ef jal 80000138 <halt>
80000028 <select_sort>:
80000028: 00000897 auipc a7,0x0
8000002c: 14488893 add a7,a7,324 # 8000016c <a+0x4>
80000030: 00000813 li a6,0
80000034: 00000e97 auipc t4,0x0
80000038: 134e8e93 add t4,t4,308 # 80000168 <a>
8000003c: 01400513 li a0,20
80000040: 01300e13 li t3,19
80000044: ffc8a303 lw t1,-4(a7)
80000048: 00080593 mv a1,a6
8000004c: 00180813 add a6,a6,1
80000050: 00088713 mv a4,a7
80000054: 00030613 mv a2,t1
80000058: 00080793 mv a5,a6
8000005c: 00072683 lw a3,0(a4)
80000060: 00470713 add a4,a4,4
80000064: 00c6d663 bge a3,a2,80000070 <select_sort+0x48>
80000068: 00078593 mv a1,a5
8000006c: 00068613 mv a2,a3
80000070: 00178793 add a5,a5,1
80000074: fea794e3 bne a5,a0,8000005c <select_sort+0x34>
80000078: 00259593 sll a1,a1,0x2
8000007c: fec8ae23 sw a2,-4(a7)
80000080: 00be85b3 add a1,t4,a1
80000084: 0065a023 sw t1,0(a1)
80000088: 00488893 add a7,a7,4
8000008c: fbc81ce3 bne a6,t3,80000044 <select_sort+0x1c>
80000090: 00008067 ret
80000094 <main>:
80000094: fe010113 add sp,sp,-32
80000098: 00912a23 sw s1,20(sp)
8000009c: 00000497 auipc s1,0x0
800000a0: 0cc48493 add s1,s1,204 # 80000168 <a>
800000a4: 00812c23 sw s0,24(sp)
800000a8: 01212823 sw s2,16(sp)
800000ac: 01312623 sw s3,12(sp)
800000b0: 00112e23 sw ra,28(sp)
800000b4: 00048913 mv s2,s1
800000b8: f71ff0ef jal 80000028 <select_sort>
800000bc: 00000413 li s0,0
800000c0: 01400993 li s3,20
800000c4: 00092503 lw a0,0(s2)
800000c8: 00490913 add s2,s2,4
800000cc: 40850533 sub a0,a0,s0
800000d0: 00153513 seqz a0,a0
800000d4: 00140413 add s0,s0,1
800000d8: f39ff0ef jal 80000010 <check>
800000dc: ff3414e3 bne s0,s3,800000c4 <main+0x30>
800000e0: 00100513 li a0,1
800000e4: f2dff0ef jal 80000010 <check>
800000e8: 00000413 li s0,0
800000ec: f3dff0ef jal 80000028 <select_sort>
800000f0: 01400913 li s2,20
800000f4: 0004a503 lw a0,0(s1)
800000f8: 00448493 add s1,s1,4
800000fc: 40850533 sub a0,a0,s0
80000100: 00153513 seqz a0,a0
80000104: 00140413 add s0,s0,1
80000108: f09ff0ef jal 80000010 <check>
8000010c: ff2414e3 bne s0,s2,800000f4 <main+0x60>
80000110: 00100513 li a0,1
80000114: efdff0ef jal 80000010 <check>
80000118: 01c12083 lw ra,28(sp)
8000011c: 01812403 lw s0,24(sp)
80000120: 01412483 lw s1,20(sp)
80000124: 01012903 lw s2,16(sp)
80000128: 00c12983 lw s3,12(sp)
8000012c: 00000513 li a0,0
80000130: 02010113 add sp,sp,32
80000134: 00008067 ret
80000138 <halt>:
80000138: 00050513 mv a0,a0
8000013c: 00100073 ebreak
80000140: 0000006f j 80000140 <halt+0x8>
80000144 <_trm_init>:
80000144: ff010113 add sp,sp,-16
80000148: 00000517 auipc a0,0x0
8000014c: 01c50513 add a0,a0,28 # 80000164 <_etext>
80000150: 00112623 sw ra,12(sp)
80000154: f41ff0ef jal 80000094 <main>
80000158: 00050513 mv a0,a0
8000015c: 00100073 ebreak
80000160: 0000006f j 80000160 <_trm_init+0x1c>