summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/arm/immed.s
blob: 400f628f3f35fd684929c65fe77324fadd9918e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@	Tests for complex immediate expressions - none of these need 
@	relocations
	.text
bar:
	mov	r0, #0
	mov	r0, #(. - bar - 8)
	ldr	r0, bar
	ldr	r0, [pc, # (bar - . -8)]
	.space 4096
	mov	r0, #(. - bar - 8) & 0xff
	ldr	r0, [pc, # (bar - . -8) & 0xff]

	@ section padding for a.out's benefit
	nop
	nop