3 // RUN
: llvm-mc
-filetype
=obj
-triple
=powerpc64le-unknown-linux
%s
-o
%t.o
4 // RUN
: llvm-mc
-filetype
=obj
-triple
=powerpc64le-unknown-linux
%p
/Inputs
/ppc64-func-global-entry.s
-o
%t2.o
5 // RUN
: llvm-mc
-filetype
=obj
-triple
=powerpc64le-unknown-linux
%p
/Inputs
/ppc64-func-local-entry.s
-o
%t3.o
6 // RUN
: ld.lld
%t.o
%t2.o
%t3.o
-o
%t
7 // RUN
: llvm-objdump
-d
--no-show-raw-insn
%t | FileCheck
%s
9 // RUN
: llvm-mc
-filetype
=obj
-triple
=powerpc64-unknown-linux
%s
-o
%t.o
10 // RUN
: llvm-mc
-filetype
=obj
-triple
=powerpc64-unknown-linux
%p
/Inputs
/ppc64-func-global-entry.s
-o
%t2.o
11 // RUN
: llvm-mc
-filetype
=obj
-triple
=powerpc64-unknown-linux
%p
/Inputs
/ppc64-func-local-entry.s
-o
%t3.o
12 // RUN
: ld.lld
%t.o
%t2.o
%t3.o
-o
%t
13 // RUN
: llvm-objdump
-d
--no-show-raw-insn
%t | FileCheck
%s
17 .globl _start # -- Begin function _start
19 .type _start,@function
23 addis 2, 12, .TOC.-.Lfunc_gep0@ha
24 addi 2, 2, .TOC.-.Lfunc_gep0@l
26 .localentry _start, .Lfunc_lep0-.Lfunc_gep0
33 std 30, 32(1) # 8-byte Folded Spill
41 addis 4, 2, .LC0@toc@ha
43 ld 30, 32(1) # 8-byte Folded Reload
55 .size _start, .Lfunc_end0-.Lfunc_begin0
57 .section .toc,"aw",@progbits
60 .type glob,@object # @glob
68 # Check that foo_external_diff has a global entry point and we branch to
69 # foo_external_diff+8. Also check that foo_external_same has no global entry
70 # point and we branch to start of foo_external_same.
72 // CHECK-LABEL
: <_start
>:
73 // CHECK
: 100101f0: bl 0x10010280
74 // CHECK
: 10010204: bl 0x10010258
75 // CHECK-LABEL
: <foo_external_diff
>:
76 // CHECK-NEXT
: 10010250: addis 2, 12, 2
77 // CHECK-NEXT
: 10010254: addi 2, 2, -32696
78 // CHECK-NEXT
: 10010258: addis 5, 2, 1
79 // CHECK-LABEL
: <foo_external_same
>:
80 // CHECK-NEXT
: 10010280: add 3, 4, 3