[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / Inputs / ppc64-sort-small-cm-relocs-input3.s
blob733bbb344a26c1c7aadcc21bdad1b8da902a8ef5
1 .text
2 .global getA
3 .type getA,@function
4 getA:
5 .LgepA:
6 addis 2, 12, .TOC.-.LgepA@ha
7 addi 2, 2, .TOC.-.LgepA@l
8 .LlepA:
9 .localentry getA, .LlepA-.LgepA
10 ld 3, .LC0@toc(2)
11 lwa 3, 0(3)
12 blr
14 .global getB
15 .type getB,@function
16 getB:
17 .LgepB:
18 addis 2, 12, .TOC.-.LgepB@ha
19 addi 2, 2, .TOC.-.LgepB@l
20 .LlepB:
21 .localentry getB, .LlepB-.LgepB
22 ld 3, .LC1@toc(2)
23 lwa 3, 0(3)
24 blr
26 .section .toc,"aw",@progbits
27 .LC0:
28 .tc a[TC],a
29 .LConst1:
30 .quad 0xa
31 .LC1:
32 .tc b[TC],b
33 .Lconst2:
34 .quad 0xaabbccddeeff
36 .type b,@object
37 .data
38 .global b
40 .long 22
41 .size b, 4