aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-nios2/pcrel16.d
blob: d4dda2e9e8525a01e49be75780a1976d62e6e6a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#name: NIOS2 R_NIOS2_PCREL16
#source: pcrel16.s
#source: pcrel16_label.s
#ld:
#objdump: -dr --prefix-addresses

# Test the relative branch relocations.
.*: +file format elf32-littlenios2

Disassembly of section .text:

[0-9a-f]+ <[^>]*> br	[0-9a-f]+ <ext_label>
[0-9a-f]+ <[^>]*> br	[0-9a-f]+ <ext_label\+0x10>
[0-9a-f]+ <[^>]*> nop
[0-9a-f]+ <[^>]*> nop