brintos

brintos / llvm-project-archived public Read only

0
0
Text · 551 B · 644dee0 Raw
24 lines · plain
1# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \2# RUN:     | llvm-objdump -d - | FileCheck --check-prefix=INSTR %s3# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \4# RUN:     | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s5 6.long foo7 8jump foo, x319# RELOC: R_RISCV_CALL_PLT foo 0x010# INSTR: auipc t6, 011# INSTR: jr  t612 13# Ensure that jumps to symbols whose names coincide with register names work.14 15jump zero, x116# RELOC: R_RISCV_CALL_PLT zero 0x017# INSTR: auipc ra, 018# INSTR: ret19 201:21jump 1b, x3122# INSTR: auipc t6, 023# INSTR: jr  t624