1 # test for little endian
2 # RUN: rm -rf %t && mkdir -p %t
3 # RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj -o %t/ppc64_reloc.o %s
4 # RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj -o %t/ppc64_elf_module_b.o %S/Inputs/ppc64_elf_module_b.s
5 # RUN: llvm-rtdyld -triple=powerpc64le-unknown-linux-gnu -verify -check=%s %t/ppc64_reloc.o %t/ppc64_elf_module_b.o
7 # RUN: rm -rf %t && mkdir -p %t
8 # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj -o %t/ppc64_reloc.o %s
9 # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj -o %t/ppc64_elf_module_b.o %S/Inputs/ppc64_elf_module_b.s
10 # RUN: llvm-rtdyld -triple=powerpc64-unknown-linux-gnu -verify -check=%s %t/ppc64_reloc.o %t/ppc64_elf_module_b.o
21 addis 2, 12, .TOC.-.Lfunc_gep0@ha
22 addi 2, 2, .TOC.-.Lfunc_gep0@l
24 .localentry func, .Lfunc_lep0-.Lfunc_gep0
30 # confirm that LK flag is set for bl
31 # rtdyld-check: (*{4}call_bl) & 1 = 1
41 # confirm that LK flag is not set for b
42 # rtdyld-check: (*{4}call_b) & 1 = 0
48 .size func, .Lfunc_end0-.Lfunc_begin0