summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gas/testsuite/gas/aarch64/ilp32-basic.s
blob: 790dcdf65c06e9ddca8888a8d22808602e5cdf51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
	.cpu generic
	.text
	.align	2
	.global	foo
	.type	foo, %function
foo:
	adrp	x4, ptrs
	add	x3, x4, :lo12:ptrs
	str	w0, [x4,#:lo12:ptrs]
	str	w1, [x3,4]
	str	w2, [x3,8]
	adrp	x4, :got:ptrs
	ldr	x3, [x4,#:got_lo12:ptrs]
	mov	w0, w4
	ret
	.size	foo, .-foo
	.comm	ptrs,12,8