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
265 lines
11 KiB
Text
265 lines
11 KiB
Text
|
|
/home/xin/repo/ysyx-workbench/am-kernels/tests/cpu-tests/build/quick-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: 3ac000ef jal 800003b8 <_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: 388000ef jal 800003ac <halt>
|
|
|
|
80000028 <partition>:
|
|
80000028: 00259693 sll a3,a1,0x2
|
|
8000002c: 00d506b3 add a3,a0,a3
|
|
80000030: 00050893 mv a7,a0
|
|
80000034: 0006a803 lw a6,0(a3)
|
|
80000038: 00060513 mv a0,a2
|
|
8000003c: 06c5dc63 bge a1,a2,800000b4 <partition+0x8c>
|
|
80000040: 00261793 sll a5,a2,0x2
|
|
80000044: 00f887b3 add a5,a7,a5
|
|
80000048: 0007a783 lw a5,0(a5)
|
|
8000004c: fff50613 add a2,a0,-1
|
|
80000050: 00261613 sll a2,a2,0x2
|
|
80000054: 00c88633 add a2,a7,a2
|
|
80000058: 0140006f j 8000006c <partition+0x44>
|
|
8000005c: fff50513 add a0,a0,-1
|
|
80000060: 00472783 lw a5,4(a4)
|
|
80000064: 06b50863 beq a0,a1,800000d4 <partition+0xac>
|
|
80000068: 00070613 mv a2,a4
|
|
8000006c: ffc60713 add a4,a2,-4
|
|
80000070: fef846e3 blt a6,a5,8000005c <partition+0x34>
|
|
80000074: 00259693 sll a3,a1,0x2
|
|
80000078: 00d886b3 add a3,a7,a3
|
|
8000007c: 00251313 sll t1,a0,0x2
|
|
80000080: 00f6a023 sw a5,0(a3)
|
|
80000084: 00688633 add a2,a7,t1
|
|
80000088: 04a5de63 bge a1,a0,800000e4 <partition+0xbc>
|
|
8000008c: 00068713 mv a4,a3
|
|
80000090: 00c0006f j 8000009c <partition+0x74>
|
|
80000094: 00158593 add a1,a1,1
|
|
80000098: 02a58463 beq a1,a0,800000c0 <partition+0x98>
|
|
8000009c: 00072783 lw a5,0(a4)
|
|
800000a0: 00070693 mv a3,a4
|
|
800000a4: 00470713 add a4,a4,4
|
|
800000a8: fef856e3 bge a6,a5,80000094 <partition+0x6c>
|
|
800000ac: 00f62023 sw a5,0(a2)
|
|
800000b0: f8a5cee3 blt a1,a0,8000004c <partition+0x24>
|
|
800000b4: 00058513 mv a0,a1
|
|
800000b8: 0106a023 sw a6,0(a3)
|
|
800000bc: 00008067 ret
|
|
800000c0: 006886b3 add a3,a7,t1
|
|
800000c4: 0006a783 lw a5,0(a3)
|
|
800000c8: 00f62023 sw a5,0(a2)
|
|
800000cc: 0106a023 sw a6,0(a3)
|
|
800000d0: 00008067 ret
|
|
800000d4: 00251693 sll a3,a0,0x2
|
|
800000d8: 00d886b3 add a3,a7,a3
|
|
800000dc: 00f6a023 sw a5,0(a3)
|
|
800000e0: fe9ff06f j 800000c8 <partition+0xa0>
|
|
800000e4: 00058513 mv a0,a1
|
|
800000e8: fe1ff06f j 800000c8 <partition+0xa0>
|
|
|
|
800000ec <quick_sort>:
|
|
800000ec: 1ec5dc63 bge a1,a2,800002e4 <quick_sort+0x1f8>
|
|
800000f0: fa010113 add sp,sp,-96
|
|
800000f4: 04812c23 sw s0,88(sp)
|
|
800000f8: 05612023 sw s6,64(sp)
|
|
800000fc: 03812c23 sw s8,56(sp)
|
|
80000100: 04112e23 sw ra,92(sp)
|
|
80000104: 03912a23 sw s9,52(sp)
|
|
80000108: 00058c13 mv s8,a1
|
|
8000010c: 00060b13 mv s6,a2
|
|
80000110: 00050413 mv s0,a0
|
|
80000114: 000b0613 mv a2,s6
|
|
80000118: 000c0593 mv a1,s8
|
|
8000011c: 00040513 mv a0,s0
|
|
80000120: f09ff0ef jal 80000028 <partition>
|
|
80000124: 00a12023 sw a0,0(sp)
|
|
80000128: fff50c93 add s9,a0,-1
|
|
8000012c: 199c5863 bge s8,s9,800002bc <quick_sort+0x1d0>
|
|
80000130: 04912a23 sw s1,84(sp)
|
|
80000134: 05212823 sw s2,80(sp)
|
|
80000138: 05312623 sw s3,76(sp)
|
|
8000013c: 03a12823 sw s10,48(sp)
|
|
80000140: 03b12623 sw s11,44(sp)
|
|
80000144: 000c8613 mv a2,s9
|
|
80000148: 000c0593 mv a1,s8
|
|
8000014c: 00040513 mv a0,s0
|
|
80000150: ed9ff0ef jal 80000028 <partition>
|
|
80000154: 00a12223 sw a0,4(sp)
|
|
80000158: fff50d13 add s10,a0,-1
|
|
8000015c: 15ac5063 bge s8,s10,8000029c <quick_sort+0x1b0>
|
|
80000160: 000d0613 mv a2,s10
|
|
80000164: 000c0593 mv a1,s8
|
|
80000168: 00040513 mv a0,s0
|
|
8000016c: ebdff0ef jal 80000028 <partition>
|
|
80000170: 00a12423 sw a0,8(sp)
|
|
80000174: fff50d93 add s11,a0,-1
|
|
80000178: 11bc5c63 bge s8,s11,80000290 <quick_sort+0x1a4>
|
|
8000017c: 000d8613 mv a2,s11
|
|
80000180: 000c0593 mv a1,s8
|
|
80000184: 00040513 mv a0,s0
|
|
80000188: ea1ff0ef jal 80000028 <partition>
|
|
8000018c: 00a12623 sw a0,12(sp)
|
|
80000190: fff50993 add s3,a0,-1
|
|
80000194: 0f3c5863 bge s8,s3,80000284 <quick_sort+0x198>
|
|
80000198: 00098613 mv a2,s3
|
|
8000019c: 000c0593 mv a1,s8
|
|
800001a0: 00040513 mv a0,s0
|
|
800001a4: e85ff0ef jal 80000028 <partition>
|
|
800001a8: fff50913 add s2,a0,-1
|
|
800001ac: 00050493 mv s1,a0
|
|
800001b0: 0d2c5663 bge s8,s2,8000027c <quick_sort+0x190>
|
|
800001b4: 05412423 sw s4,72(sp)
|
|
800001b8: 03712e23 sw s7,60(sp)
|
|
800001bc: 00090613 mv a2,s2
|
|
800001c0: 000c0593 mv a1,s8
|
|
800001c4: 00040513 mv a0,s0
|
|
800001c8: e61ff0ef jal 80000028 <partition>
|
|
800001cc: fff50b93 add s7,a0,-1
|
|
800001d0: 00050a13 mv s4,a0
|
|
800001d4: 097c5c63 bge s8,s7,8000026c <quick_sort+0x180>
|
|
800001d8: 05512223 sw s5,68(sp)
|
|
800001dc: 000b8613 mv a2,s7
|
|
800001e0: 000c0593 mv a1,s8
|
|
800001e4: 00040513 mv a0,s0
|
|
800001e8: e41ff0ef jal 80000028 <partition>
|
|
800001ec: 00a12823 sw a0,16(sp)
|
|
800001f0: fff50a93 add s5,a0,-1
|
|
800001f4: 075c5463 bge s8,s5,8000025c <quick_sort+0x170>
|
|
800001f8: 000a8613 mv a2,s5
|
|
800001fc: 000c0593 mv a1,s8
|
|
80000200: 00040513 mv a0,s0
|
|
80000204: e25ff0ef jal 80000028 <partition>
|
|
80000208: fff50713 add a4,a0,-1
|
|
8000020c: 00050793 mv a5,a0
|
|
80000210: 04ec5263 bge s8,a4,80000254 <quick_sort+0x168>
|
|
80000214: 00070613 mv a2,a4
|
|
80000218: 000c0593 mv a1,s8
|
|
8000021c: 00040513 mv a0,s0
|
|
80000220: 00f12e23 sw a5,28(sp)
|
|
80000224: 00e12c23 sw a4,24(sp)
|
|
80000228: e01ff0ef jal 80000028 <partition>
|
|
8000022c: fff50613 add a2,a0,-1
|
|
80000230: 00a12a23 sw a0,20(sp)
|
|
80000234: 000c0593 mv a1,s8
|
|
80000238: 00040513 mv a0,s0
|
|
8000023c: eb1ff0ef jal 800000ec <quick_sort>
|
|
80000240: 01412683 lw a3,20(sp)
|
|
80000244: 01812703 lw a4,24(sp)
|
|
80000248: 01c12783 lw a5,28(sp)
|
|
8000024c: 00168c13 add s8,a3,1
|
|
80000250: fcec42e3 blt s8,a4,80000214 <quick_sort+0x128>
|
|
80000254: 00178c13 add s8,a5,1
|
|
80000258: fb5c40e3 blt s8,s5,800001f8 <quick_sort+0x10c>
|
|
8000025c: 01012783 lw a5,16(sp)
|
|
80000260: 00178c13 add s8,a5,1
|
|
80000264: f77c4ce3 blt s8,s7,800001dc <quick_sort+0xf0>
|
|
80000268: 04412a83 lw s5,68(sp)
|
|
8000026c: 001a0c13 add s8,s4,1
|
|
80000270: f52c46e3 blt s8,s2,800001bc <quick_sort+0xd0>
|
|
80000274: 04812a03 lw s4,72(sp)
|
|
80000278: 03c12b83 lw s7,60(sp)
|
|
8000027c: 00148c13 add s8,s1,1
|
|
80000280: f13c4ce3 blt s8,s3,80000198 <quick_sort+0xac>
|
|
80000284: 00c12783 lw a5,12(sp)
|
|
80000288: 00178c13 add s8,a5,1
|
|
8000028c: efbc48e3 blt s8,s11,8000017c <quick_sort+0x90>
|
|
80000290: 00812783 lw a5,8(sp)
|
|
80000294: 00178c13 add s8,a5,1
|
|
80000298: edac44e3 blt s8,s10,80000160 <quick_sort+0x74>
|
|
8000029c: 00412783 lw a5,4(sp)
|
|
800002a0: 00178c13 add s8,a5,1
|
|
800002a4: eb9c40e3 blt s8,s9,80000144 <quick_sort+0x58>
|
|
800002a8: 05412483 lw s1,84(sp)
|
|
800002ac: 05012903 lw s2,80(sp)
|
|
800002b0: 04c12983 lw s3,76(sp)
|
|
800002b4: 03012d03 lw s10,48(sp)
|
|
800002b8: 02c12d83 lw s11,44(sp)
|
|
800002bc: 00012783 lw a5,0(sp)
|
|
800002c0: 00178c13 add s8,a5,1
|
|
800002c4: e56c48e3 blt s8,s6,80000114 <quick_sort+0x28>
|
|
800002c8: 05c12083 lw ra,92(sp)
|
|
800002cc: 05812403 lw s0,88(sp)
|
|
800002d0: 04012b03 lw s6,64(sp)
|
|
800002d4: 03812c03 lw s8,56(sp)
|
|
800002d8: 03412c83 lw s9,52(sp)
|
|
800002dc: 06010113 add sp,sp,96
|
|
800002e0: 00008067 ret
|
|
800002e4: 00008067 ret
|
|
|
|
800002e8 <main>:
|
|
800002e8: fe010113 add sp,sp,-32
|
|
800002ec: 00912a23 sw s1,20(sp)
|
|
800002f0: 01300613 li a2,19
|
|
800002f4: 00000593 li a1,0
|
|
800002f8: 00000517 auipc a0,0x0
|
|
800002fc: 0e450513 add a0,a0,228 # 800003dc <a>
|
|
80000300: 00000497 auipc s1,0x0
|
|
80000304: 0dc48493 add s1,s1,220 # 800003dc <a>
|
|
80000308: 00812c23 sw s0,24(sp)
|
|
8000030c: 01212823 sw s2,16(sp)
|
|
80000310: 01312623 sw s3,12(sp)
|
|
80000314: 00112e23 sw ra,28(sp)
|
|
80000318: 00048913 mv s2,s1
|
|
8000031c: dd1ff0ef jal 800000ec <quick_sort>
|
|
80000320: 00000413 li s0,0
|
|
80000324: 01400993 li s3,20
|
|
80000328: 00092503 lw a0,0(s2)
|
|
8000032c: 00490913 add s2,s2,4
|
|
80000330: 40850533 sub a0,a0,s0
|
|
80000334: 00153513 seqz a0,a0
|
|
80000338: 00140413 add s0,s0,1
|
|
8000033c: cd5ff0ef jal 80000010 <check>
|
|
80000340: ff3414e3 bne s0,s3,80000328 <main+0x40>
|
|
80000344: 00100513 li a0,1
|
|
80000348: cc9ff0ef jal 80000010 <check>
|
|
8000034c: 01300613 li a2,19
|
|
80000350: 00000593 li a1,0
|
|
80000354: 00000517 auipc a0,0x0
|
|
80000358: 08850513 add a0,a0,136 # 800003dc <a>
|
|
8000035c: d91ff0ef jal 800000ec <quick_sort>
|
|
80000360: 00000413 li s0,0
|
|
80000364: 01400913 li s2,20
|
|
80000368: 0004a503 lw a0,0(s1)
|
|
8000036c: 00448493 add s1,s1,4
|
|
80000370: 40850533 sub a0,a0,s0
|
|
80000374: 00153513 seqz a0,a0
|
|
80000378: 00140413 add s0,s0,1
|
|
8000037c: c95ff0ef jal 80000010 <check>
|
|
80000380: ff2414e3 bne s0,s2,80000368 <main+0x80>
|
|
80000384: 00100513 li a0,1
|
|
80000388: c89ff0ef jal 80000010 <check>
|
|
8000038c: 01c12083 lw ra,28(sp)
|
|
80000390: 01812403 lw s0,24(sp)
|
|
80000394: 01412483 lw s1,20(sp)
|
|
80000398: 01012903 lw s2,16(sp)
|
|
8000039c: 00c12983 lw s3,12(sp)
|
|
800003a0: 00000513 li a0,0
|
|
800003a4: 02010113 add sp,sp,32
|
|
800003a8: 00008067 ret
|
|
|
|
800003ac <halt>:
|
|
800003ac: 00050513 mv a0,a0
|
|
800003b0: 00100073 ebreak
|
|
800003b4: 0000006f j 800003b4 <halt+0x8>
|
|
|
|
800003b8 <_trm_init>:
|
|
800003b8: ff010113 add sp,sp,-16
|
|
800003bc: 00000517 auipc a0,0x0
|
|
800003c0: 01c50513 add a0,a0,28 # 800003d8 <_etext>
|
|
800003c4: 00112623 sw ra,12(sp)
|
|
800003c8: f21ff0ef jal 800002e8 <main>
|
|
800003cc: 00050513 mv a0,a0
|
|
800003d0: 00100073 ebreak
|
|
800003d4: 0000006f j 800003d4 <_trm_init+0x1c>
|