ysyx-workbench/am-kernels/tests/cpu-tests/build/load-store-riscv32-nemu.txt

141 lines
5.6 KiB
Text
Raw Normal View History

/home/xin/repo/ysyx-workbench/am-kernels/tests/cpu-tests/build/load-store-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: 1c8000ef jal 800001d4 <_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: 1a4000ef jal 800001c8 <halt>
80000028 <main>:
80000028: fe010113 add sp,sp,-32
8000002c: 00812c23 sw s0,24(sp)
80000030: 00000417 auipc s0,0x0
80000034: 23840413 add s0,s0,568 # 80000268 <mem>
80000038: 00912a23 sw s1,20(sp)
8000003c: 01212823 sw s2,16(sp)
80000040: 01312623 sw s3,12(sp)
80000044: 01412423 sw s4,8(sp)
80000048: 00112e23 sw ra,28(sp)
8000004c: 00000997 auipc s3,0x0
80000050: 1fc98993 add s3,s3,508 # 80000248 <lh_ans>
80000054: 00000a17 auipc s4,0x0
80000058: 224a0a13 add s4,s4,548 # 80000278 <_bss_start>
8000005c: 00040913 mv s2,s0
80000060: 00040493 mv s1,s0
80000064: 0009a783 lw a5,0(s3)
80000068: 00049503 lh a0,0(s1)
8000006c: 00248493 add s1,s1,2
80000070: 00498993 add s3,s3,4
80000074: 40f50533 sub a0,a0,a5
80000078: 00153513 seqz a0,a0
8000007c: f95ff0ef jal 80000010 <check>
80000080: ff4492e3 bne s1,s4,80000064 <main+0x3c>
80000084: 00000497 auipc s1,0x0
80000088: 1a448493 add s1,s1,420 # 80000228 <lhu_ans>
8000008c: 0004a783 lw a5,0(s1)
80000090: 00045503 lhu a0,0(s0)
80000094: 00240413 add s0,s0,2
80000098: 00448493 add s1,s1,4
8000009c: 40f50533 sub a0,a0,a5
800000a0: 00153513 seqz a0,a0
800000a4: f6dff0ef jal 80000010 <check>
800000a8: ff4412e3 bne s0,s4,8000008c <main+0x64>
800000ac: 00294683 lbu a3,2(s2)
800000b0: 00194603 lbu a2,1(s2)
800000b4: 00394703 lbu a4,3(s2)
800000b8: 00494783 lbu a5,4(s2)
800000bc: 00000417 auipc s0,0x0
800000c0: 13c40413 add s0,s0,316 # 800001f8 <lwlr_ans>
800000c4: 00869693 sll a3,a3,0x8
800000c8: 00c6e6b3 or a3,a3,a2
800000cc: 00042503 lw a0,0(s0)
800000d0: 01071713 sll a4,a4,0x10
800000d4: 00d76733 or a4,a4,a3
800000d8: 01879793 sll a5,a5,0x18
800000dc: 00e7e7b3 or a5,a5,a4
800000e0: 40f50533 sub a0,a0,a5
800000e4: 00153513 seqz a0,a0
800000e8: f29ff0ef jal 80000010 <check>
800000ec: 00694683 lbu a3,6(s2)
800000f0: 00594603 lbu a2,5(s2)
800000f4: 00794703 lbu a4,7(s2)
800000f8: 00894783 lbu a5,8(s2)
800000fc: 00869693 sll a3,a3,0x8
80000100: 00c6e6b3 or a3,a3,a2
80000104: 00442503 lw a0,4(s0)
80000108: 01071713 sll a4,a4,0x10
8000010c: 00d76733 or a4,a4,a3
80000110: 01879793 sll a5,a5,0x18
80000114: 00e7e7b3 or a5,a5,a4
80000118: 40f50533 sub a0,a0,a5
8000011c: 00153513 seqz a0,a0
80000120: ef1ff0ef jal 80000010 <check>
80000124: 00a94683 lbu a3,10(s2)
80000128: 00994603 lbu a2,9(s2)
8000012c: 00b94703 lbu a4,11(s2)
80000130: 00c94783 lbu a5,12(s2)
80000134: 00869693 sll a3,a3,0x8
80000138: 00842503 lw a0,8(s0)
8000013c: 00c6e6b3 or a3,a3,a2
80000140: 01071713 sll a4,a4,0x10
80000144: 00d76733 or a4,a4,a3
80000148: 01879793 sll a5,a5,0x18
8000014c: 00e7e7b3 or a5,a5,a4
80000150: 40f50533 sub a0,a0,a5
80000154: 00153513 seqz a0,a0
80000158: eb9ff0ef jal 80000010 <check>
8000015c: 00000497 auipc s1,0x0
80000160: 0ac48493 add s1,s1,172 # 80000208 <sh_ans>
80000164: 00100413 li s0,1
80000168: 00100a13 li s4,1
8000016c: 01100993 li s3,17
80000170: 008a17b3 sll a5,s4,s0
80000174: 0004a503 lw a0,0(s1)
80000178: fff7c793 not a5,a5
8000017c: 01079793 sll a5,a5,0x10
80000180: 0107d793 srl a5,a5,0x10
80000184: 00890733 add a4,s2,s0
80000188: 40f50533 sub a0,a0,a5
8000018c: 00153513 seqz a0,a0
80000190: fef71fa3 sh a5,-1(a4)
80000194: 00240413 add s0,s0,2
80000198: e79ff0ef jal 80000010 <check>
8000019c: 00448493 add s1,s1,4
800001a0: fd3418e3 bne s0,s3,80000170 <main+0x148>
800001a4: 01c12083 lw ra,28(sp)
800001a8: 01812403 lw s0,24(sp)
800001ac: 01412483 lw s1,20(sp)
800001b0: 01012903 lw s2,16(sp)
800001b4: 00c12983 lw s3,12(sp)
800001b8: 00812a03 lw s4,8(sp)
800001bc: 00000513 li a0,0
800001c0: 02010113 add sp,sp,32
800001c4: 00008067 ret
800001c8 <halt>:
800001c8: 00050513 mv a0,a0
800001cc: 00100073 ebreak
800001d0: 0000006f j 800001d0 <halt+0x8>
800001d4 <_trm_init>:
800001d4: ff010113 add sp,sp,-16
800001d8: 00000517 auipc a0,0x0
800001dc: 01c50513 add a0,a0,28 # 800001f4 <_etext>
800001e0: 00112623 sw ra,12(sp)
800001e4: e45ff0ef jal 80000028 <main>
800001e8: 00050513 mv a0,a0
800001ec: 00100073 ebreak
800001f0: 0000006f j 800001f0 <_trm_init+0x1c>