aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-xstormy16/pcrel.s
blob: 6128e516e4bbee404ee1c0dc090f46807136baf1 (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
	.text
	.global _start
_start:	
	mov 0, # external
	mov 0, # global
	mov 0, # local
	
	mov 0, # external - .
	mov 0, # global - .
	mov 0, # local - .

	bc            external
	bc            global
	bc            local
	
	bc rx, #0,    external
	bc rx, #0,    global
	bc rx, #0,    local

	bc r0, #0,    external
	bc r0, #0,    global
	bc r0, #0,    local
	
	bc  r0, r1,   external
	bc  r0, r1,   global
	bc  r0, r1,   local
	.global global
global:
	nop
local:
	nop