• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1;;; Test 16bit relocate with XGATE
2;;;
3	.sect .text
4	.globl _start
5_start:
6
7	ldw	r1,#var1 	; expands to two IMM8 %hi,%lo relocate
8	add	r5,#var2 	; expands to two IMM8 %hi,%lo relocate
9	ldl	r2,#%lovar4 ; test explicit %lo
10	ldh	r2,#%hivar4 ; test explicit %hi
11	ldl	r3,#0x21 	; regular IMM8
12	ldh	r6,#var5 	; IMM8 with relocate
13	cmp r1,#0xabcd	; expands to two IMM8 with constant
14	cmp r2,#var3 	; expands to two IMM8 %hi,%lo relocate
15  ldw r1,#var6
16  ldw r2,#var6+0x104 ; check for correct carry
17