sysy-data/final_performance_c/asm/if-combine3.s

386 lines
5.5 KiB
ArmAsm

.file "if-combine3.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 func
.type func, @function
func:
addi sp,sp,-720
addi a5,sp,208
sd s0,704(sp)
sd a0,8(sp)
mv s0,a0
li a2,400
li a1,0
mv a0,a5
sd ra,712(sp)
sd s1,696(sp)
sd s2,688(sp)
sd s3,680(sp)
sd s4,672(sp)
sd s5,664(sp)
sd s6,656(sp)
sd s7,648(sp)
sd s8,640(sp)
sd s9,632(sp)
sd s10,624(sp)
sd s11,616(sp)
sd a5,200(sp)
call memset@plt
ble s0,zero,.L5
li s0,19
li t2,21
slli s0,s0,32
addi s0,s0,18
li t0,23
slli t2,t2,32
li t6,25
sd s0,80(sp)
slli t0,t0,32
addi s0,t2,20
li t5,27
sd s0,88(sp)
slli t6,t6,32
addi s0,t0,22
li t4,29
sd s0,96(sp)
slli t5,t5,32
addi s0,t6,24
li t3,31
sd s0,104(sp)
slli t4,t4,32
addi s0,t5,26
li t1,33
sd s0,112(sp)
slli t3,t3,32
addi s0,t4,28
li a7,35
sd s0,120(sp)
slli t1,t1,32
addi s0,t3,30
li s8,3
li s7,5
li s6,7
li s5,9
li s4,11
li s3,13
li s2,15
li s1,17
li a6,37
li a1,39
li a2,41
li a3,43
li a4,45
li a5,47
sd s0,128(sp)
slli a7,a7,32
addi s0,t1,32
slli s8,s8,32
slli s7,s7,32
slli s6,s6,32
slli s5,s5,32
slli s4,s4,32
slli s3,s3,32
slli s2,s2,32
slli s1,s1,32
sd s0,136(sp)
slli a6,a6,32
addi s0,a7,34
slli a1,a1,32
slli a2,a2,32
slli a3,a3,32
slli a4,a4,32
slli a5,a5,32
addi s8,s8,2
addi s7,s7,4
addi s6,s6,6
addi s5,s5,8
addi s4,s4,10
addi s3,s3,12
addi s2,s2,14
addi s1,s1,16
sd s0,144(sp)
addi a1,a1,38
addi s0,a6,36
addi a2,a2,40
addi a3,a3,42
addi a4,a4,44
addi a5,a5,46
li s11,0
li a0,0
sd s8,16(sp)
sd s7,24(sp)
sd s6,32(sp)
sd s5,40(sp)
sd s4,48(sp)
sd s3,56(sp)
sd s2,64(sp)
sd s1,72(sp)
sd s0,152(sp)
sd a1,160(sp)
sd a2,168(sp)
sd a3,176(sp)
sd a4,184(sp)
sd a5,192(sp)
.L4:
li s10,1
sw s10,212(sp)
ld s10,16(sp)
li s2,63
slli s2,s2,32
sd s10,216(sp)
ld s10,24(sp)
addi s2,s2,62
li s9,49
sd s10,224(sp)
ld s10,32(sp)
li s8,51
li s7,53
sd s10,232(sp)
ld s10,40(sp)
li s6,55
li s5,57
sd s10,240(sp)
ld s10,48(sp)
li s4,59
li s3,61
sd s10,248(sp)
ld s10,56(sp)
li s1,67
li s0,69
sd s10,256(sp)
ld s10,64(sp)
li t2,71
li t0,73
sd s10,264(sp)
ld s10,72(sp)
li t6,75
li t5,77
sd s10,272(sp)
ld s10,80(sp)
li t4,79
li t3,81
sd s10,280(sp)
ld s10,88(sp)
li t1,83
li a5,97
sd s10,288(sp)
ld s10,96(sp)
slli s9,s9,32
slli s8,s8,32
sd s10,296(sp)
ld s10,104(sp)
slli s7,s7,32
slli s6,s6,32
sd s10,304(sp)
ld s10,112(sp)
slli s5,s5,32
slli s4,s4,32
sd s10,312(sp)
ld s10,120(sp)
slli s3,s3,32
slli s1,s1,32
sd s10,320(sp)
ld s10,128(sp)
slli s0,s0,32
slli t2,t2,32
sd s10,328(sp)
ld s10,136(sp)
slli t0,t0,32
slli t6,t6,32
sd s10,336(sp)
ld s10,144(sp)
sd s2,456(sp)
slli t5,t5,32
sd s10,344(sp)
ld s10,152(sp)
li s2,64
slli t4,t4,32
sd s10,352(sp)
ld s10,160(sp)
slli t3,t3,32
sw s2,464(sp)
sd s10,360(sp)
ld s10,168(sp)
li a4,95
addi s9,s9,48
sd s10,368(sp)
ld s10,176(sp)
addi s8,s8,50
addi s7,s7,52
sd s10,376(sp)
ld s10,184(sp)
addi s6,s6,54
addi s5,s5,56
sd s10,384(sp)
ld s10,192(sp)
addi s4,s4,58
addi s3,s3,60
li s2,65
addi s1,s1,66
addi s0,s0,68
addi t2,t2,70
addi t0,t0,72
addi t6,t6,74
addi t5,t5,76
addi t4,t4,78
addi t3,t3,80
slli t1,t1,32
slli a5,a5,32
addi a5,a5,96
sd s10,392(sp)
sd s9,400(sp)
sd s8,408(sp)
sd s7,416(sp)
sd s6,424(sp)
sd s5,432(sp)
sd s4,440(sp)
sd s3,448(sp)
sw s2,468(sp)
sd s1,472(sp)
sd s0,480(sp)
sd t2,488(sp)
sd t0,496(sp)
sd t6,504(sp)
sd t5,512(sp)
sd t4,520(sp)
sd t3,528(sp)
addi t1,t1,82
slli a4,a4,32
sd t1,536(sp)
addi a4,a4,94
li a7,85
li a6,87
li a1,89
li a2,91
li a3,93
sd a5,592(sp)
li a5,99
slli a7,a7,32
slli a6,a6,32
slli a1,a1,32
slli a2,a2,32
slli a3,a3,32
sd a4,584(sp)
slli a5,a5,32
ld a4,200(sp)
addi a3,a3,92
addi a7,a7,84
addi a6,a6,86
addi a1,a1,88
addi a2,a2,90
addi a5,a5,98
sd a3,576(sp)
addiw s11,s11,1
sd a7,544(sp)
sd a6,552(sp)
sd a1,560(sp)
sd a2,568(sp)
sd a5,600(sp)
addi a3,sp,608
.L3:
lw a5,0(a4)
addi a4,a4,4
addw a0,a5,a0
mv a5,a0
bne a3,a4,.L3
li a0,65536
addiw a0,a0,-1
remw a0,a5,a0
ld a5,8(sp)
bne a5,s11,.L4
.L2:
ld ra,712(sp)
ld s0,704(sp)
ld s1,696(sp)
ld s2,688(sp)
ld s3,680(sp)
ld s4,672(sp)
ld s5,664(sp)
ld s6,656(sp)
ld s7,648(sp)
ld s8,640(sp)
ld s9,632(sp)
ld s10,624(sp)
ld s11,616(sp)
addi sp,sp,720
jr ra
.L5:
li a0,0
j .L2
.size func, .-func
.section .text.startup,"ax",@progbits
.align 1
.globl main
.type main, @function
main:
addi sp,sp,-16
li a0,325
sd ra,8(sp)
call _sysy_starttime@plt
call getint@plt
call func
call putint@plt
li a0,10
call putch@plt
li a0,329
call _sysy_stoptime@plt
ld ra,8(sp)
li a0,0
addi sp,sp,16
jr ra
.size main, .-main
.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
.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