[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / Inputs / ppc64-func-global-entry.s
blob5987db6b5c532c9335bd2c159b2f56a8294f41fc
1 .text
2 .abiversion 2
3 .globl foo_external_diff # -- Begin function foo_external_diff
4 .p2align 4
5 .type foo_external_diff,@function
6 foo_external_diff: # @foo_external_diff
7 .Lfunc_begin0:
8 .Lfunc_gep0:
9 addis 2, 12, .TOC.-.Lfunc_gep0@ha
10 addi 2, 2, .TOC.-.Lfunc_gep0@l
11 .Lfunc_lep0:
12 .localentry foo_external_diff, .Lfunc_lep0-.Lfunc_gep0
13 # %bb.0: # %entry
14 addis 5, 2, .LC0@toc@ha
15 add 3, 4, 3
16 ld 5, .LC0@toc@l(5)
17 lwz 5, 0(5)
18 add 3, 3, 5
19 extsw 3, 3
20 blr
21 .long 0
22 .quad 0
23 .Lfunc_end0:
24 .size foo_external_diff, .Lfunc_end0-.Lfunc_begin0
25 # -- End function
26 .section .toc,"aw",@progbits
27 .LC0:
28 .tc glob2[TC],glob2
29 .type glob2,@object # @glob2
30 .data
31 .globl glob2
32 .p2align 2
33 glob2:
34 .long 10 # 0xa
35 .size glob2, 4