Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/binutils/testsuite/binutils-all/aarch64/pei-aarch64-little.s
2023-03-06 14:48:14 +01:00

42 lines
699 B
ArmAsm

.arch armv8-a
.text
.align 2
.global foo
.type foo, %function
foo:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
ldr w0, [sp, 12]
mul w0, w0, w0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov w0, 5
bl foo
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
.ident "GCC: (fsf-trunk.2870) 12.0.0 20210930 (experimental)"
.section .note.GNU-stack,"",@progbits