Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-mips-elf/reloc-pcrel-r6.s
2023-03-06 14:48:14 +01:00

27 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