aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/scfi/aarch64/scfi-ldrp-2.s
blob: ac4ad6836ed00bd378b3f7fbf861a247575f0504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Testcase for various ldp / ldr instructions
	.text
	.align  2
	.global foo
	.type   foo, %function
foo:
	.cfi_startproc
	stp     x29, x30, [sp, -128]!
	.cfi_def_cfa_offset 128
	.cfi_offset 29, -128
	.cfi_offset 30, -120
	mov     x29, sp
	.cfi_def_cfa_register 29
	mov     sp, x29
	.cfi_def_cfa_register 31
# Post-indexed ldr
	ldr     x29, [sp], 8
	.cfi_restore 29
	.cfi_def_cfa_offset 120
# Post-indexed ldr
	ldr     x30, [sp], 120
	.cfi_restore 30
	.cfi_def_cfa_offset 0
	ret
	.cfi_endproc
	.size   foo, .-foo