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/functional/48_assign_complex_expr.s

46 lines
815 B

.text
.globl main
.p2align 2
main:
.L.main.0:
stp x29, x30, [sp, #-16]!
mov x29, sp
sub sp, sp, #32
str x19, [sp, #0]
mov w8, #-1
mov w19, #0
add w11, w8, w19
mov w8, #4
sub w10, w19, w8
mov w8, #2
add w8, w10, #1
cmp w10, #0
csel w8, w8, w10, lt
asr w9, w8, #1
mov w8, #2
msub w8, w9, w8, w10
sub w8, w11, w8
mov w0, w8
bl putint
mov w8, #67
add w9, w19, w8
sub w8, w19, w19
add w11, w9, w8
mov w10, #3
add w8, w10, #1
cmp w10, #0
csel w8, w8, w10, lt
asr w9, w8, #1
mov w8, #2
msub w8, w9, w8, w10
sub w8, w19, w8
sub w8, w11, w8
add w8, w8, w10
mov w0, w8
bl putint
mov w0, w19
ldr x19, [sp, #0]
add sp, sp, #32
ldp x29, x30, [sp], #16
ret