brintos

brintos / llvm-project-archived public Read only

0
0
Text · 498 B · b4dd87a Raw
20 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llvm-mc -triple=riscv64 -filetype=obj -o %t/riscv64_pc_relative.o %s3# RUN: llvm-mc -triple=riscv32 -filetype=obj -o %t/riscv32_pc_relative.o %s4# RUN: llvm-jitlink -noexec -check %s %t/riscv64_pc_relative.o5# RUN: llvm-jitlink -noexec -check %s %t/riscv32_pc_relative.o6 7# jitlink-check: *{4}(foo) = 0x48 9.global main10main:11  lw a0, foo12 13.section ".text","",@progbits14.type foo,@function15foo:16  nop17  nop18  .reloc foo, R_RISCV_32_PCREL, foo+419  .size foo, 820