[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / RISCV / ELF_abs_reloc.s
bloba70a8b8cbc6fd5e5b5705b0ad36a74d0fde0e8e0
1 # RUN: rm -rf %t && mkdir -p %t
2 # RUN: llvm-mc -triple=riscv64 -filetype=obj -o %t/elf_riscv64_non_pc_indirect_reloc.o %s
3 # RUN: llvm-mc -triple=riscv32 -filetype=obj -o %t/elf_riscv32_non_pc_indirect_reloc.o %s
4 # RUN: llvm-jitlink -noexec -slab-allocate 100Kb -slab-address 0xfff00000 -define-abs external_data=0xfff10000\
5 # RUN: -check %s %t/elf_riscv64_non_pc_indirect_reloc.o
6 # RUN: llvm-jitlink -noexec -slab-allocate 100Kb -slab-address 0xfff00000 -define-abs external_data=0xfff10000\
7 # RUN: -check %s %t/elf_riscv32_non_pc_indirect_reloc.o
10 .text
11 .file "testcase.c"
13 # Empty main entry point.
14 .globl main
15 .p2align 1
16 .type main,@function
17 main:
18 ret
20 .size main, .-main
22 # Test R_RISCV_HI20 and R_RISCV_LO12
24 # jitlink-check: decode_operand(test_abs_rel, 1) = (external_data + 0x800)[31:12]
25 # jitlink-check: decode_operand(test_abs_rel+4, 2)[11:0] = (external_data)[11:0]
26 .globl test_abs_rel
27 .p2align 1
28 .type test_abs_rel,@function
29 test_abs_rel:
30 lui a0, %hi(external_data)
31 lw a0, %lo(external_data)(a0)
33 .size test_abs_rel, .-test_abs_rel