diff options
Diffstat (limited to 'llvm/test/MC/RISCV/relocations.s')
| -rw-r--r-- | llvm/test/MC/RISCV/relocations.s | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/llvm/test/MC/RISCV/relocations.s b/llvm/test/MC/RISCV/relocations.s index 44a5d08f81e..10a28903906 100644 --- a/llvm/test/MC/RISCV/relocations.s +++ b/llvm/test/MC/RISCV/relocations.s @@ -129,6 +129,38 @@ sb t1, %pcrel_lo(.L2)(a2) # INSTR: sb t1, %pcrel_lo(.L2)(a2) # FIXUP: fixup A - offset: 0, value: %pcrel_lo(.L2), kind: fixup_riscv_pcrel_lo12_s +.L3: +auipc t1, %tls_ie_pcrel_hi(foo) +# RELOC: R_RISCV_TLS_GOT_HI20 foo 0x0 +# INSTR: auipc t1, %tls_ie_pcrel_hi(foo) +# FIXUP: fixup A - offset: 0, value: %tls_ie_pcrel_hi(foo), kind: fixup_riscv_tls_got_hi20 + +addi t1, t1, %pcrel_lo(.L3) +# RELOC: R_RISCV_PCREL_LO12_I .L3 0x0 +# INSTR: addi t1, t1, %pcrel_lo(.L3) +# FIXUP: fixup A - offset: 0, value: %pcrel_lo(.L3), kind: fixup_riscv_pcrel_lo12_i + +sb t1, %pcrel_lo(.L3)(a2) +# RELOC: R_RISCV_PCREL_LO12_S .L3 0x0 +# INSTR: sb t1, %pcrel_lo(.L3)(a2) +# FIXUP: fixup A - offset: 0, value: %pcrel_lo(.L3), kind: fixup_riscv_pcrel_lo12_s + +.L4: +auipc t1, %tls_gd_pcrel_hi(foo) +# RELOC: R_RISCV_TLS_GD_HI20 foo 0x0 +# INSTR: auipc t1, %tls_gd_pcrel_hi(foo) +# FIXUP: fixup A - offset: 0, value: %tls_gd_pcrel_hi(foo), kind: fixup_riscv_tls_gd_hi20 + +addi t1, t1, %pcrel_lo(.L4) +# RELOC: R_RISCV_PCREL_LO12_I .L4 0x0 +# INSTR: addi t1, t1, %pcrel_lo(.L4) +# FIXUP: fixup A - offset: 0, value: %pcrel_lo(.L4), kind: fixup_riscv_pcrel_lo12_i + +sb t1, %pcrel_lo(.L4)(a2) +# RELOC: R_RISCV_PCREL_LO12_S .L4 0x0 +# INSTR: sb t1, %pcrel_lo(.L4)(a2) +# FIXUP: fixup A - offset: 0, value: %pcrel_lo(.L4), kind: fixup_riscv_pcrel_lo12_s + add t1, t1, tp, %tprel_add(foo) # RELOC: R_RISCV_TPREL_ADD foo 0x0 # INSTR: add t1, t1, tp, %tprel_add(foo) |

