Retro68/binutils/ld/testsuite/ld-riscv-elf/pcrel-lo-addend.s

18 lines
260 B
ArmAsm
Raw Normal View History

2018-12-28 15:25:28 +00:00
.text
.globl _start
_start:
auipc ra, %pcrel_hi(tdata)
addi ra, ra, %pcrel_lo(.text)
lb t1, 0(ra)
foo:
auipc ra, %pcrel_hi(tdata)
addi ra, ra, %pcrel_lo(.text+12)
lb t2, 1(ra)
.data
tdata:
.byte 0xff
.byte 0x00
.byte 0xf0
.byte 0x0f