blob: 202aece4dc65e08b8ed4c8aa16f3f185b9ace2e7 [file] [log] [blame]
#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\)