128 lines
1.9 KiB
ArmAsm
128 lines
1.9 KiB
ArmAsm
.file "38_op_priority4.sy"
|
|
.option pic
|
|
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
|
|
.attribute unaligned_access, 0
|
|
.attribute stack_align, 16
|
|
.text
|
|
.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)
|
|
lla s0,.LANCHOR0
|
|
call getint@plt
|
|
sw a0,0(s0)
|
|
call getint@plt
|
|
sw a0,4(s0)
|
|
call getint@plt
|
|
sw a0,8(s0)
|
|
call getint@plt
|
|
sw a0,12(s0)
|
|
call getint@plt
|
|
lw a4,0(s0)
|
|
lw a1,8(s0)
|
|
lw a6,4(s0)
|
|
lw a7,12(s0)
|
|
divw a3,a4,a1
|
|
sw a0,16(s0)
|
|
mv a5,a0
|
|
li a0,1
|
|
mulw a2,a6,a1
|
|
subw a3,a7,a3
|
|
subw a2,a4,a2
|
|
beq a2,a3,.L7
|
|
.L2:
|
|
ld ra,8(sp)
|
|
ld s0,0(sp)
|
|
addi sp,sp,16
|
|
jr ra
|
|
.L7:
|
|
mulw a3,a4,a6
|
|
addw a5,a5,a7
|
|
divw a3,a3,a1
|
|
beq a3,a5,.L2
|
|
addw a0,a4,a6
|
|
addw a0,a0,a1
|
|
sub a0,a0,a5
|
|
seqz a0,a0
|
|
j .L2
|
|
.size main, .-main
|
|
.globl e
|
|
.globl d
|
|
.globl c
|
|
.globl b
|
|
.globl a
|
|
.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 a, @object
|
|
.size a, 4
|
|
a:
|
|
.zero 4
|
|
.type b, @object
|
|
.size b, 4
|
|
b:
|
|
.zero 4
|
|
.type c, @object
|
|
.size c, 4
|
|
c:
|
|
.zero 4
|
|
.type d, @object
|
|
.size d, 4
|
|
d:
|
|
.zero 4
|
|
.type e, @object
|
|
.size e, 4
|
|
e:
|
|
.zero 4
|
|
.type _sysy_idx, @object
|
|
.size _sysy_idx, 4
|
|
_sysy_idx:
|
|
.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
|