summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/ld/testsuite/ld-nios2/gprel.d
blob: 202aece4dc65e08b8ed4c8aa16f3f185b9ace2e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#name: NIOS2 gp-relative relocations
#source: gprel.s
#ld:
#objdump: -dr --prefix-addresses

# Test the %gprel macro.

.*: +file format elf32-littlenios2

Disassembly of section .text:
[0-9a-f]+ <[^>]*> movui	gp,[0-9]+
[0-9a-f]+ <[^>]*> ldw	at,-[0-9]+\(gp\)
[0-9a-f]+ <[^>]*> ldw	r2,-[0-9]+\(gp\)
[0-9a-f]+ <[^>]*> ldb	r3,-[0-9]+\(gp\)
[0-9a-f]+ <[^>]*> ldw	at,-[0-9]+\(gp\)
[0-9a-f]+ <[^>]*> ldw	r2,-[0-9]+\(gp\)
[0-9a-f]+ <[^>]*> ldb	r3,-[0-9]+\(gp\)