526 lines
7.2 KiB
ArmAsm
526 lines
7.2 KiB
ArmAsm
.file "89_many_globals.sy"
|
|
.option pic
|
|
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
|
|
.attribute unaligned_access, 0
|
|
.attribute stack_align, 16
|
|
.text
|
|
.align 1
|
|
.globl testParam8
|
|
.type testParam8, @function
|
|
testParam8:
|
|
addw a0,a0,a1
|
|
addw a0,a0,a2
|
|
addw a0,a0,a3
|
|
addw a0,a0,a4
|
|
addw a0,a0,a5
|
|
addw a0,a0,a6
|
|
addw a0,a0,a7
|
|
ret
|
|
.size testParam8, .-testParam8
|
|
.align 1
|
|
.globl testParam16
|
|
.type testParam16, @function
|
|
testParam16:
|
|
addw a0,a0,a1
|
|
addw a0,a0,a2
|
|
subw a0,a0,a3
|
|
subw a0,a0,a4
|
|
subw a0,a0,a5
|
|
lw a5,0(sp)
|
|
lw a4,8(sp)
|
|
subw a0,a0,a6
|
|
subw a0,a0,a7
|
|
addw a5,a0,a5
|
|
addw a5,a5,a4
|
|
lw a4,16(sp)
|
|
lw a0,56(sp)
|
|
addw a5,a5,a4
|
|
lw a4,24(sp)
|
|
addw a5,a5,a4
|
|
lw a4,32(sp)
|
|
addw a5,a5,a4
|
|
lw a4,40(sp)
|
|
addw a5,a5,a4
|
|
lw a4,48(sp)
|
|
addw a5,a5,a4
|
|
addw a0,a5,a0
|
|
ret
|
|
.size testParam16, .-testParam16
|
|
.align 1
|
|
.globl testParam32
|
|
.type testParam32, @function
|
|
testParam32:
|
|
addw a0,a0,a1
|
|
addw a0,a0,a2
|
|
addw a0,a0,a3
|
|
addw a0,a0,a4
|
|
addw a0,a0,a5
|
|
lw a5,0(sp)
|
|
lw a4,8(sp)
|
|
addw a0,a0,a6
|
|
addw a0,a0,a7
|
|
addw a5,a0,a5
|
|
addw a5,a5,a4
|
|
lw a4,16(sp)
|
|
lw a0,184(sp)
|
|
addw a5,a5,a4
|
|
lw a4,24(sp)
|
|
addw a5,a5,a4
|
|
lw a4,32(sp)
|
|
addw a5,a5,a4
|
|
lw a4,40(sp)
|
|
addw a5,a5,a4
|
|
lw a4,48(sp)
|
|
addw a5,a5,a4
|
|
lw a4,56(sp)
|
|
addw a5,a5,a4
|
|
lw a4,64(sp)
|
|
addw a5,a5,a4
|
|
lw a4,72(sp)
|
|
addw a5,a5,a4
|
|
lw a4,80(sp)
|
|
subw a5,a5,a4
|
|
lw a4,88(sp)
|
|
subw a5,a5,a4
|
|
lw a4,96(sp)
|
|
subw a5,a5,a4
|
|
lw a4,104(sp)
|
|
subw a5,a5,a4
|
|
lw a4,112(sp)
|
|
subw a5,a5,a4
|
|
lw a4,120(sp)
|
|
addw a5,a5,a4
|
|
lw a4,128(sp)
|
|
addw a5,a5,a4
|
|
lw a4,136(sp)
|
|
addw a5,a5,a4
|
|
lw a4,144(sp)
|
|
addw a5,a5,a4
|
|
lw a4,152(sp)
|
|
addw a5,a5,a4
|
|
lw a4,160(sp)
|
|
addw a5,a5,a4
|
|
lw a4,168(sp)
|
|
addw a5,a5,a4
|
|
lw a4,176(sp)
|
|
addw a5,a5,a4
|
|
addw a0,a5,a0
|
|
ret
|
|
.size testParam32, .-testParam32
|
|
.section .text.startup,"ax",@progbits
|
|
.align 1
|
|
.globl main
|
|
.type main, @function
|
|
main:
|
|
addi sp,sp,-16
|
|
sd ra,8(sp)
|
|
sd s0,0(sp)
|
|
li a6,5
|
|
lla s0,.LANCHOR0
|
|
li a5,1
|
|
li a1,6
|
|
li a2,7
|
|
li a3,8
|
|
li a4,9
|
|
li t1,2
|
|
li a7,3
|
|
li a0,4
|
|
sw t1,4(s0)
|
|
sw a7,8(s0)
|
|
sw a6,16(s0)
|
|
sw t1,44(s0)
|
|
sw a7,48(s0)
|
|
sw a6,56(s0)
|
|
sw t1,84(s0)
|
|
sw a7,88(s0)
|
|
sw a6,96(s0)
|
|
sw a1,20(s0)
|
|
sw a2,24(s0)
|
|
sw a3,28(s0)
|
|
sw a4,32(s0)
|
|
sw a1,60(s0)
|
|
sw a2,64(s0)
|
|
sw a3,68(s0)
|
|
sw a4,72(s0)
|
|
sw a1,100(s0)
|
|
sw a2,104(s0)
|
|
sw a3,108(s0)
|
|
sw a4,112(s0)
|
|
sw a5,0(s0)
|
|
sw a0,12(s0)
|
|
sw a5,40(s0)
|
|
sw a0,52(s0)
|
|
sw a5,80(s0)
|
|
sw a0,92(s0)
|
|
sw a5,120(s0)
|
|
sw a0,124(s0)
|
|
sw zero,36(s0)
|
|
sw zero,76(s0)
|
|
li a0,28
|
|
sw a5,152(s0)
|
|
li a5,28
|
|
sw a6,128(s0)
|
|
sw a1,132(s0)
|
|
sw a2,136(s0)
|
|
sw a3,140(s0)
|
|
sw a4,144(s0)
|
|
sw a5,156(s0)
|
|
sw zero,116(s0)
|
|
sw zero,148(s0)
|
|
call putint@plt
|
|
lw a2,124(s0)
|
|
lw a5,128(s0)
|
|
lw a3,132(s0)
|
|
lw a4,136(s0)
|
|
lw a1,140(s0)
|
|
addw a5,a5,a2
|
|
addw a5,a5,a3
|
|
lw a2,144(s0)
|
|
lw a3,148(s0)
|
|
subw a5,a5,a4
|
|
subw a5,a5,a1
|
|
lw a4,152(s0)
|
|
lw a1,28(s0)
|
|
subw a5,a5,a2
|
|
subw a5,a5,a3
|
|
lw a2,32(s0)
|
|
lw a3,36(s0)
|
|
subw a5,a5,a4
|
|
addw a5,a5,a1
|
|
lw a4,40(s0)
|
|
lw a1,44(s0)
|
|
addw a5,a5,a2
|
|
addw a5,a5,a3
|
|
lw a2,48(s0)
|
|
lw a3,52(s0)
|
|
addw a5,a5,a4
|
|
addw a5,a5,a1
|
|
lw a4,56(s0)
|
|
addw a5,a5,a2
|
|
addw a5,a5,a3
|
|
addw a0,a5,a4
|
|
sw a0,156(s0)
|
|
call putint@plt
|
|
lw a2,156(s0)
|
|
lw a5,0(s0)
|
|
lw a3,4(s0)
|
|
lw a4,8(s0)
|
|
lw a1,12(s0)
|
|
addw a5,a5,a2
|
|
addw a5,a5,a3
|
|
lw a2,16(s0)
|
|
lw a3,20(s0)
|
|
addw a5,a5,a4
|
|
addw a5,a5,a1
|
|
lw a4,24(s0)
|
|
lw a1,28(s0)
|
|
addw a5,a5,a2
|
|
addw a5,a5,a3
|
|
lw a2,32(s0)
|
|
lw a3,36(s0)
|
|
addw a5,a5,a4
|
|
addw a5,a5,a1
|
|
lw a4,40(s0)
|
|
lw a1,44(s0)
|
|
addw a5,a5,a2
|
|
addw a5,a5,a3
|
|
lw a2,48(s0)
|
|
lw a3,52(s0)
|
|
addw a5,a5,a4
|
|
addw a5,a5,a1
|
|
lw a4,56(s0)
|
|
lw a1,60(s0)
|
|
addw a5,a5,a2
|
|
addw a5,a5,a3
|
|
lw a2,64(s0)
|
|
lw a3,68(s0)
|
|
addw a5,a5,a4
|
|
addw a5,a5,a1
|
|
lw a4,72(s0)
|
|
lw a1,76(s0)
|
|
addw a5,a5,a2
|
|
subw a5,a5,a3
|
|
lw a2,80(s0)
|
|
lw a3,84(s0)
|
|
subw a5,a5,a4
|
|
subw a5,a5,a1
|
|
lw a4,88(s0)
|
|
lw a1,92(s0)
|
|
subw a5,a5,a2
|
|
subw a5,a5,a3
|
|
lw a2,96(s0)
|
|
lw a3,100(s0)
|
|
addw a5,a5,a4
|
|
addw a5,a5,a1
|
|
lw a4,104(s0)
|
|
lw a1,108(s0)
|
|
addw a5,a5,a2
|
|
addw a5,a5,a3
|
|
lw a2,112(s0)
|
|
lw a3,116(s0)
|
|
addw a5,a5,a4
|
|
addw a5,a5,a1
|
|
lw a4,120(s0)
|
|
addw a5,a5,a2
|
|
addw a5,a5,a3
|
|
addw a0,a5,a4
|
|
sw a0,156(s0)
|
|
call putint@plt
|
|
ld ra,8(sp)
|
|
ld s0,0(sp)
|
|
li a0,0
|
|
addi sp,sp,16
|
|
jr ra
|
|
.size main, .-main
|
|
.globl a39
|
|
.globl a38
|
|
.globl a37
|
|
.globl a36
|
|
.globl a35
|
|
.globl a34
|
|
.globl a33
|
|
.globl a32
|
|
.globl a31
|
|
.globl a30
|
|
.globl a29
|
|
.globl a28
|
|
.globl a27
|
|
.globl a26
|
|
.globl a25
|
|
.globl a24
|
|
.globl a23
|
|
.globl a22
|
|
.globl a21
|
|
.globl a20
|
|
.globl a19
|
|
.globl a18
|
|
.globl a17
|
|
.globl a16
|
|
.globl a15
|
|
.globl a14
|
|
.globl a13
|
|
.globl a12
|
|
.globl a11
|
|
.globl a10
|
|
.globl a9
|
|
.globl a8
|
|
.globl a7
|
|
.globl a6
|
|
.globl a5
|
|
.globl a4
|
|
.globl a3
|
|
.globl a2
|
|
.globl a1
|
|
.globl a0
|
|
.globl _sysy_idx
|
|
.globl _sysy_us
|
|
.globl _sysy_s
|
|
.globl _sysy_m
|
|
.globl _sysy_h
|
|
.globl _sysy_l2
|
|
.globl _sysy_l1
|
|
.globl _sysy_end
|
|
.globl _sysy_start
|
|
.bss
|
|
.align 3
|
|
.set .LANCHOR0,. + 0
|
|
.type a1, @object
|
|
.size a1, 4
|
|
a1:
|
|
.zero 4
|
|
.type a2, @object
|
|
.size a2, 4
|
|
a2:
|
|
.zero 4
|
|
.type a3, @object
|
|
.size a3, 4
|
|
a3:
|
|
.zero 4
|
|
.type a4, @object
|
|
.size a4, 4
|
|
a4:
|
|
.zero 4
|
|
.type a5, @object
|
|
.size a5, 4
|
|
a5:
|
|
.zero 4
|
|
.type a6, @object
|
|
.size a6, 4
|
|
a6:
|
|
.zero 4
|
|
.type a7, @object
|
|
.size a7, 4
|
|
a7:
|
|
.zero 4
|
|
.type a8, @object
|
|
.size a8, 4
|
|
a8:
|
|
.zero 4
|
|
.type a9, @object
|
|
.size a9, 4
|
|
a9:
|
|
.zero 4
|
|
.type a10, @object
|
|
.size a10, 4
|
|
a10:
|
|
.zero 4
|
|
.type a11, @object
|
|
.size a11, 4
|
|
a11:
|
|
.zero 4
|
|
.type a12, @object
|
|
.size a12, 4
|
|
a12:
|
|
.zero 4
|
|
.type a13, @object
|
|
.size a13, 4
|
|
a13:
|
|
.zero 4
|
|
.type a14, @object
|
|
.size a14, 4
|
|
a14:
|
|
.zero 4
|
|
.type a15, @object
|
|
.size a15, 4
|
|
a15:
|
|
.zero 4
|
|
.type a16, @object
|
|
.size a16, 4
|
|
a16:
|
|
.zero 4
|
|
.type a17, @object
|
|
.size a17, 4
|
|
a17:
|
|
.zero 4
|
|
.type a18, @object
|
|
.size a18, 4
|
|
a18:
|
|
.zero 4
|
|
.type a19, @object
|
|
.size a19, 4
|
|
a19:
|
|
.zero 4
|
|
.type a20, @object
|
|
.size a20, 4
|
|
a20:
|
|
.zero 4
|
|
.type a21, @object
|
|
.size a21, 4
|
|
a21:
|
|
.zero 4
|
|
.type a22, @object
|
|
.size a22, 4
|
|
a22:
|
|
.zero 4
|
|
.type a23, @object
|
|
.size a23, 4
|
|
a23:
|
|
.zero 4
|
|
.type a24, @object
|
|
.size a24, 4
|
|
a24:
|
|
.zero 4
|
|
.type a25, @object
|
|
.size a25, 4
|
|
a25:
|
|
.zero 4
|
|
.type a26, @object
|
|
.size a26, 4
|
|
a26:
|
|
.zero 4
|
|
.type a27, @object
|
|
.size a27, 4
|
|
a27:
|
|
.zero 4
|
|
.type a28, @object
|
|
.size a28, 4
|
|
a28:
|
|
.zero 4
|
|
.type a29, @object
|
|
.size a29, 4
|
|
a29:
|
|
.zero 4
|
|
.type a30, @object
|
|
.size a30, 4
|
|
a30:
|
|
.zero 4
|
|
.type a31, @object
|
|
.size a31, 4
|
|
a31:
|
|
.zero 4
|
|
.type a32, @object
|
|
.size a32, 4
|
|
a32:
|
|
.zero 4
|
|
.type a33, @object
|
|
.size a33, 4
|
|
a33:
|
|
.zero 4
|
|
.type a34, @object
|
|
.size a34, 4
|
|
a34:
|
|
.zero 4
|
|
.type a35, @object
|
|
.size a35, 4
|
|
a35:
|
|
.zero 4
|
|
.type a36, @object
|
|
.size a36, 4
|
|
a36:
|
|
.zero 4
|
|
.type a37, @object
|
|
.size a37, 4
|
|
a37:
|
|
.zero 4
|
|
.type a38, @object
|
|
.size a38, 4
|
|
a38:
|
|
.zero 4
|
|
.type a39, @object
|
|
.size a39, 4
|
|
a39:
|
|
.zero 4
|
|
.type a0, @object
|
|
.size a0, 4
|
|
a0:
|
|
.zero 4
|
|
.type _sysy_idx, @object
|
|
.size _sysy_idx, 4
|
|
_sysy_idx:
|
|
.zero 4
|
|
.zero 4
|
|
.type _sysy_us, @object
|
|
.size _sysy_us, 4096
|
|
_sysy_us:
|
|
.zero 4096
|
|
.type _sysy_s, @object
|
|
.size _sysy_s, 4096
|
|
_sysy_s:
|
|
.zero 4096
|
|
.type _sysy_m, @object
|
|
.size _sysy_m, 4096
|
|
_sysy_m:
|
|
.zero 4096
|
|
.type _sysy_h, @object
|
|
.size _sysy_h, 4096
|
|
_sysy_h:
|
|
.zero 4096
|
|
.type _sysy_l2, @object
|
|
.size _sysy_l2, 4096
|
|
_sysy_l2:
|
|
.zero 4096
|
|
.type _sysy_l1, @object
|
|
.size _sysy_l1, 4096
|
|
_sysy_l1:
|
|
.zero 4096
|
|
.type _sysy_end, @object
|
|
.size _sysy_end, 16
|
|
_sysy_end:
|
|
.zero 16
|
|
.type _sysy_start, @object
|
|
.size _sysy_start, 16
|
|
_sysy_start:
|
|
.zero 16
|
|
.ident "GCC: (Debian 12.2.0-13) 12.2.0"
|
|
.section .note.GNU-stack,"",@progbits
|