You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nudt-compiler-cpp/2026test_results/performance/optimization_scheduling2.s

171 lines
3.0 KiB

.text
.globl dependent_computation
.p2align 2
dependent_computation:
.L.dependent_computation.0:
stp x29, x30, [sp, #-16]!
mov x29, sp
mov w16, w0
mov w8, #0
mov w11, w8
mov w8, #4
mov w10, w8
mov w8, #3
mov w12, w8
mov w8, #2
mov w9, w8
mov w8, #1
.L.dependent_computation.1:
cmp w11, w16
b.lt .L.dependent_computation.2
b .L.dependent_computation.3
.L.dependent_computation.2:
add w8, w8, w9
add w9, w9, w12
add w12, w12, w10
add w10, w10, w8
mov w15, #1
add w11, w11, w15
b .L.dependent_computation.1
.L.dependent_computation.3:
add w8, w8, w9
add w8, w8, w12
add w8, w8, w10
mov w0, w8
ldp x29, x30, [sp], #16
ret
.text
.globl independent_computation
.p2align 2
independent_computation:
.L.independent_computation.0:
stp x29, x30, [sp, #-16]!
mov x29, sp
mov w16, w0
mov w8, #0
mov w12, w8
mov w8, #4
mov w11, w8
mov w8, #3
mov w15, w8
mov w8, #2
mov w10, w8
mov w8, #1
mov w9, w8
.L.independent_computation.1:
cmp w12, w16
b.lt .L.independent_computation.2
b .L.independent_computation.3
.L.independent_computation.2:
add w8, w9, w10
add w10, w10, w15
add w15, w15, w11
add w11, w11, w9
mov w9, #1
add w12, w12, w9
mov w9, w8
b .L.independent_computation.1
.L.independent_computation.3:
add w8, w9, w10
add w8, w8, w15
add w8, w8, w11
mov w0, w8
ldp x29, x30, [sp], #16
ret
.text
.globl main
.p2align 2
main:
.L.main.0:
stp x29, x30, [sp, #-16]!
mov x29, sp
sub sp, sp, #48
stp x21, x19, [sp, #0]
str x20, [sp, #16]
bl getint
mov w19, w0
mov w8, #40
mov w0, w8
bl _sysy_starttime
mov w0, w19
.L.main.1:
mov w16, w0
mov w8, #0
mov w9, #4
mov w10, #3
mov w11, #2
mov w12, #1
.L.main.2:
cmp w8, w16
b.lt .L.main.3
b .L.main.4
.L.main.3:
add w12, w12, w11
add w11, w11, w10
add w10, w10, w9
add w9, w9, w12
mov w15, #1
add w8, w8, w15
b .L.main.2
.L.main.4:
add w8, w12, w11
add w8, w8, w10
add w8, w8, w9
mov w0, w8
.L.main.5:
mov w20, w0
mov w0, w19
.L.main.6:
mov w16, w0
mov w8, #0
mov w9, w8
mov w8, #4
mov w15, w8
mov w8, #3
mov w12, w8
mov w8, #2
mov w11, w8
mov w8, #1
mov w10, w8
.L.main.7:
cmp w9, w16
b.lt .L.main.8
b .L.main.9
.L.main.8:
add w8, w10, w11
add w11, w11, w12
add w12, w12, w15
add w15, w15, w10
mov w10, #1
add w9, w9, w10
mov w10, w8
b .L.main.7
.L.main.9:
add w8, w10, w11
add w8, w8, w12
add w8, w8, w15
mov w0, w8
.L.main.10:
mov w21, w0
mov w8, #43
mov w0, w8
bl _sysy_stoptime
mov w0, w20
bl putint
mov w19, #10
mov w0, w19
bl putch
mov w0, w21
bl putint
mov w0, w19
bl putch
mov w8, #0
mov w0, w8
ldp x21, x19, [sp, #0]
ldr x20, [sp, #16]
add sp, sp, #48
ldp x29, x30, [sp], #16
ret