summaryrefslogtreecommitdiffstats
path: root/gas/testsuite/gas/cfi/cfi-arm-1.s
blob: 8c9d9176bf5a8c6d165dab959c753fff55554d5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#; $ as -o test.o gas-cfi-test.s && gcc -nostdlib -o test test.o

	.file   "a.c"
	.text
	.align 2
	.global foo
	.type   foo, %function
foo:
	.cfi_startproc
	mov	ip, sp
	.cfi_def_cfa ip, 0
	stmfd	sp!, {r0, r1, r2, r3}
	.cfi_def_cfa sp, 16
	stmfd	sp!, {fp, ip, lr, pc}
	.cfi_adjust_cfa_offset 16
	.cfi_rel_offset r11, 0
	.cfi_rel_offset lr, 8
	sub	fp, ip, #20
	.cfi_def_cfa fp, 16
	nop
	ldmea	fp, {fp, sp, pc}
	.cfi_endproc
	.size   foo, .-foo
OpenPOWER on IntegriCloud