forked from NUDT-compiler/nudt-compiler-cpp
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.
29 lines
429 B
29 lines
429 B
.data
|
|
.globl a
|
|
.p2align 2
|
|
a:
|
|
.word 0
|
|
.word 1
|
|
.word 2
|
|
.word 3
|
|
.word 4
|
|
|
|
.text
|
|
.globl main
|
|
.p2align 2
|
|
main:
|
|
.L.main.0:
|
|
stp x29, x30, [sp, #-16]!
|
|
mov x29, sp
|
|
sub sp, sp, #16
|
|
adrp x15, a
|
|
add x15, x15, :lo12:a
|
|
mov x14, #16
|
|
add x15, x15, x14
|
|
ldr w8, [x15]
|
|
stur w8, [x29, #-4]
|
|
ldur w0, [x29, #-4]
|
|
add sp, sp, #16
|
|
ldp x29, x30, [sp], #16
|
|
ret
|