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.

76 lines
1.2 KiB

.text
.globl doubleWhile
.p2align 2
doubleWhile:
.L.doubleWhile.0:
stp x29, x30, [sp, #-16]!
mov x29, sp
mov w8, #7
mov w9, #5
.L.doubleWhile.1:
mov w10, #100
cmp w9, w10
b.ge .L.doubleWhile.3
.L.doubleWhile.2:
mov w10, #30
add w10, w9, w10
mov w9, w8
.L.doubleWhile.4:
mov w8, #100
cmp w9, w8
b.ge .L.doubleWhile.6
.L.doubleWhile.5:
mov w8, #6
add w8, w9, w8
mov w9, w8
b .L.doubleWhile.4
.L.doubleWhile.3:
mov w0, w8
ldp x29, x30, [sp], #16
ret
.L.doubleWhile.6:
mov w8, #100
sub w8, w9, w8
mov w9, w10
b .L.doubleWhile.1
.text
.globl main
.p2align 2
main:
.L.main.0:
stp x29, x30, [sp, #-16]!
mov x29, sp
.L.main.1:
mov w8, #7
mov w9, #5
.L.main.2:
mov w10, #100
cmp w9, w10
b.ge .L.main.4
.L.main.3:
mov w10, #30
add w10, w9, w10
mov w9, w8
.L.main.5:
mov w8, #100
cmp w9, w8
b.ge .L.main.7
.L.main.6:
mov w8, #6
add w8, w9, w8
mov w9, w8
b .L.main.5
.L.main.4:
mov w0, w8
.L.main.8:
mov w8, w0
mov w0, w8
ldp x29, x30, [sp], #16
ret
.L.main.7:
mov w8, #100
sub w8, w9, w8
mov w9, w10
b .L.main.2