summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/xgate/hilo.s
blob: c157a6a0f1d18e94aea6fd5db9674ecaeb1dc58b (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
32
33
# Test for correct generation of XGATE insns when using the %hi and %lo modifiers.
	
	.sect .text
;Test Constants
hiTestLo:
	ldl R2, %hi(0x8844)
hiTestHi:
	ldh R2, %hi(0x8844)
loTestLo:
	ldl R3, %lo(0x8844)
loTestHi:
	ldh R3, %lo(0x8844)
;Test Fixups
hiTestLoF:
	ldl R2, %hi(test)
hiTestHiF:
	ldh R2, %hi(test)
loTestLoF:
	ldl R3, %lo(test)
loTestHiF:
	ldh R3, %lo(test)
;Test Relocs
hiTestLoR:
	ldl R2, %hi(symValue)
hiTestHiR:
	ldh R2, %hi(symValue)
loTestLoR:
	ldl R3, %lo(symValue)
loTestHiR:
	ldh R3, %lo(symValue)

symValue:
test = 0xff88