Retro68/binutils/ld/testsuite/ld-mips-elf/reloc-pcrel-r6.s
Wolfgang Thaller f485e125c4 binutils 2.39
2022-10-27 20:45:45 +02:00

28 lines
388 B
ArmAsm

.text
.globl test
.globl x1
.globl x2
.globl x3
.globl x4
.ent test
test:
1:
auipc $a0,%pcrel_hi(x1)
2:
addiu $a0,$a0,%pcrel_lo(x1+(2b-1b))
1:
auipc $a0,%pcrel_hi(x2)
2:
addiu $a0,$a0, %pcrel_lo(x2+(2b-1b))
1:
auipc $a0,%pcrel_hi(x3)
2:
addiu $a0,$a0,%pcrel_lo(x3+(2b-1b))
1:
auipc $a0,%pcrel_hi(x4)
2:
addiu $a0,$a0,%pcrel_lo(x4+(2b-1b))
.end test
.align 2, 0
.space 8