summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-m68hc11/xgate1.s
blob: 26baf67fad92835b79d28a55b74f39c02d4b83be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;;; Test branches and branch relocate with XGATE
;;; 
	.sect .text
	.globl _start
_start:

	ldw	r1,#var1 	; expands to two IMM8 %hi,%lo relocate
    tst r1
    beq     linked_ad1
    tst r2
    beq     the_end
    bra     linked_ad2

the_end:
    rts

    .sect   .data
var1:   fdb 0x1234