brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · f7ce00a Raw
37 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llvm-mc -triple=x86_64-unknown-linux -position-independent \3# RUN:     -filetype=obj -o %t/elf_abs_reloc.o %s4# RUN: llvm-jitlink -noexec \5# RUN:     -slab-allocate 100Kb -slab-address 0xfff00000 -slab-page-size 4096 \6# RUN:     -abs external_data_low=0x1 \7# RUN:     -abs external_data_high=0xffffffff80000000 \8# RUN:     -check %s %t/elf_abs_reloc.o9#10# Test ELF absolute relocations.11 12 13        .text14        .file   "testcase.c"15 16# Empty main entry point.17        .globl  main18        .p2align        4, 0x9019        .type   main,@function20main:21        retq22 23        .size   main, .-main24 25# R_X86_64_32S handling26# Test the target value is in range of signed 32-bits imm27# jitlink-check: decode_operand(test_abs_32S, 4) = external_data_low28# jitlink-check: decode_operand(test_abs_32S+7, 4)[31:0] = external_data_high[31:0]29        .globl  test_abs_32S30        .p2align       4, 0x9031        .type   test_abs_32S,@function32test_abs_32S:33        movl    external_data_low, %eax34        movl    external_data_high, %esi35 36         .size   test_abs_32S, .-test_abs_32S37