aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/scfi/aarch64/scfi-cfg-3.s
blob: 2782e11f6d3dccc46e0ee0ff257edbec794118ef (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
27
28
29
30
31
32
33
34
# Testcase for cfg creation.
# There is at least one bb here with a single GINSN_TYPE_SYMBOL instruction
# for a user-defined label.  This ginsn is visited in the fallthrough path of
# another bb.
	.text
	.global main
	.type   main, %function
main:
	.cfi_startproc
	stp     x29, x30, [sp, -32]!
	.cfi_def_cfa_offset 32
	.cfi_offset 29, -32
	.cfi_offset 30, -24
	mov     x29, sp
	.cfi_def_cfa_register 29
	cmp     w0, 0
	bne     .L2
#	ldr	x0, [sp, 24]
#	bl	fclose
	cmp     w0, 0
	beq     .L3
.L2:
	mov     w0, 1
	b       .L5
.L3:
	mov     w0, 0
.L5:
	ldp     x29, x30, [sp], 32
	.cfi_def_cfa_register 31
	.cfi_restore 29
	.cfi_restore 30
	.cfi_def_cfa_offset 0
	ret
	.cfi_endproc