summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.asm/aarch64.inc
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.asm/aarch64.inc')
-rw-r--r--gdb/testsuite/gdb.asm/aarch64.inc34
1 files changed, 34 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.asm/aarch64.inc b/gdb/testsuite/gdb.asm/aarch64.inc
new file mode 100644
index 00000000000..0144cdca9db
--- /dev/null
+++ b/gdb/testsuite/gdb.asm/aarch64.inc
@@ -0,0 +1,34 @@
+ comment "subroutine prologue"
+ .macro gdbasm_enter
+ stp x29, x30, [sp,#-32]!
+ mov x29, sp
+ .endm
+
+ comment "subroutine epilogue"
+ .macro gdbasm_leave
+ ldp x29, x30, [sp],#32
+ ret
+ .endm
+
+ .macro gdbasm_call subr
+ bl \subr
+ .endm
+
+ .macro gdbasm_several_nops
+ nop
+ nop
+ nop
+ nop
+ .endm
+
+ comment "exit (0)"
+ .macro gdbasm_exit0
+ mov x8, #93
+ svc 0
+ .endm
+
+ comment "crt0 startup"
+ .macro gdbasm_startup
+ mov x0, sp
+ .endm
+