brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 86e3008 Raw
54 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llvm-mc --triple=loongarch32 -mattr=+relax --filetype=obj \3# RUN:     -o %t/la32_reloc_addsub.o %s4# RUN: llvm-jitlink --noexec --check %s %t/la32_reloc_addsub.o \5# RUN:     --slab-allocate=1Mb --slab-address=0x1000 --slab-page-size=0x40006# RUN: llvm-mc --triple=loongarch64 -mattr=+relax --filetype=obj \7# RUN:     -o %t/la64_reloc_addsub.o %s8# RUN: llvm-jitlink --noexec --check %s %t/la64_reloc_addsub.o \9# RUN:     --slab-allocate=1Mb --slab-address=0x1000 --slab-page-size=0x400010 11# jitlink-check: *{8}(named_data) = 0x812# jitlink-check: *{4}(named_data+8) = 0x813# jitlink-check: *{2}(named_data+12) = 0x814# jitlink-check: *{1}(named_data+14) = 0x815# jitlink-check: *{1}(named_data+15) = 0x1016 17# jitlink-check: *{1}(leb_data) = 0x818# jitlink-check: *{2}(leb_data+1) = 0x18019# jitlink-check: *{8}(leb_data+3) = 0xfffffffffffffff820# jitlink-check: *{2}(leb_data+11) = 0x1ff21# jitlink-check: *{1}(leb_data+13) = 0x7f22# jitlink-check: *{2}(leb_data+14) = 0x18123 24.section .alloc_data,"ax",@progbits25.global main26main:27.L0:28# Referencing named_data symbol to avoid the following relocations be29# skipped. This macro instruction will be expand to two instructions30# (pcalau12i + ld.w/d).31  la.global $t0, named_data32.L1:33 34named_data:35.reloc named_data+15, R_LARCH_ADD6, .L136.reloc named_data+15, R_LARCH_SUB6, .L037.dword .L1 - .L038.word .L1 - .L039.half .L1 - .L040.byte .L1 - .L041.byte 0x842 43.size named_data, 1644 45leb_data:46.uleb128 .L1 - .L047.uleb128 .L1 - .L0 + 12048.uleb128 -(.L1 - .L0)49.uleb128 leb_end - leb_data + 11150.uleb128 leb_end - leb_data + 11351leb_end:52 53.size leb_data, 1654