aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-nios2/s16.s
blob: df13efa006f430faf584a998b2b1625ccb8f19a3 (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:
# signed 16-bit relocation
	addi r1, r1, some_sym
	addi r1, r1, min
	addi r1, r1, max
	addi r1, r1, some_sym + some_other_sym + 1
	addi r1, r1, some_sym - some_other_sym + 1