brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1019 B · 97fe1b1 Raw
38 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llvm-mc -triple=riscv64 -filetype=obj \3# RUN:     -o %t/elf_riscv64_jal.o %s4# RUN: llvm-mc -triple=riscv32 -filetype=obj \5# RUN:     -o %t/elf_riscv32_jal.o %s6# RUN: llvm-jitlink -noexec \7# RUN:     -slab-allocate 100Kb -slab-address 0x1ff00000 -slab-page-size 4096 \8# RUN:     -abs external_func=0x1fe000fe \9# RUN:     -check %s %t/elf_riscv64_jal.o10# RUN: llvm-jitlink -noexec \11# RUN:     -slab-allocate 100Kb -slab-address 0x1ff00000 -slab-page-size 4096 \12# RUN:     -abs external_func=0x1fe000fe \13# RUN:     -check %s %t/elf_riscv32_jal.o14#15 16        .text17        .file   "testcase.c"18 19# Empty main entry point.20        .globl  main21        .p2align  122        .type   main,@function23main:24        ret25 26        .size   main, .-main27 28# Test R_RISCV_JAL29 30# jitlink-check: decode_operand(test_jal, 1)[31:12] = (external_func - test_jal)[31:12]31  .globl  test_jal32  .p2align  133  .type  test_jal,@function34test_jal:35  jal	x0, external_func36 37  .size test_jal, .-test_jal38