summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/ld/testsuite/ld-nios2/u16.s
blob: b89068239156914973fc21f4c8dd7fa04c5dac35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Test for Nios II 32-bit, 16 and 8-bit relocations

.set noat
.set some_other_sym, 0x1000
.text
.global _start
_start:
# unsigned 16-bit relocation
	andi r1, r1, some_sym
	andi r1, r1, min
	andi r1, r1, max
	andi r1, r1, some_sym + some_other_sym + 1
	andi r1, r1, some_sym - some_other_sym + 1