1 # test for little endian
3 # This test has been observed to fail on 32-bit architectures (see e.g.
4 # https://github.com/llvm/llvm-project/issues/62184). Since we're aiming to
5 # bring up JITLink support for ppc64{le} anyway (see
6 # https://github.com/llvm/llvm-project/issues/62253) I've opted to just disable
7 # it on 32-bit architectures for now.
8 # REQUIRES: llvm-64-bits
10 # RUN: rm -rf %t && mkdir -p %t
11 # RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj -o %t/ppc64_reloc.o %s
12 # RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj -o %t/ppc64_elf_module_b.o %S/Inputs/ppc64_elf_module_b.s
13 # RUN: llvm-rtdyld -triple=powerpc64le-unknown-linux-gnu -verify -check=%s %t/ppc64_reloc.o %t/ppc64_elf_module_b.o
15 # RUN: rm -rf %t && mkdir -p %t
16 # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj -o %t/ppc64_reloc.o %s
17 # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj -o %t/ppc64_elf_module_b.o %S/Inputs/ppc64_elf_module_b.s
18 # RUN: llvm-rtdyld -triple=powerpc64-unknown-linux-gnu -verify -check=%s %t/ppc64_reloc.o %t/ppc64_elf_module_b.o
29 addis 2, 12, .TOC.-.Lfunc_gep0@ha
30 addi 2, 2, .TOC.-.Lfunc_gep0@l
32 .localentry func, .Lfunc_lep0-.Lfunc_gep0
38 # confirm that LK flag is set for bl
39 # rtdyld-check: (*{4}call_bl) & 1 = 1
49 # confirm that LK flag is not set for b
50 # rtdyld-check: (*{4}call_b) & 1 = 0
56 .size func, .Lfunc_end0-.Lfunc_begin0