| 1 |
# This module contains a function with its local and global entry points |
| 2 |
# exposed. It is used by the ppc64_elf test to verify that functions with |
| 3 |
# different TOCs are called via their global entry points. |
| 4 |
.text |
| 5 |
.abiversion 2 |
| 6 |
.file "ppc64_elf_module_b.ll" |
| 7 |
.section .rodata.cst4,"aM",@progbits,4 |
| 8 |
.p2align 2 # -- Begin function foo |
| 9 |
.LCPI0_0: |
| 10 |
.long 1093664768 # float 11 |
| 11 |
.text |
| 12 |
.globl foo |
| 13 |
.p2align 4 |
| 14 |
.type foo,@function |
| 15 |
.Lfunc_toc0: # @foo |
| 16 |
.quad .TOC.-foo_gep |
| 17 |
foo: |
| 18 |
.Lfunc_begin0: |
| 19 |
.cfi_startproc |
| 20 |
.globl foo_gep |
| 21 |
foo_gep: |
| 22 |
ld 2, .Lfunc_toc0-foo_gep(12) |
| 23 |
add 2, 2, 12 |
| 24 |
.globl foo_lep |
| 25 |
foo_lep: |
| 26 |
.localentry foo, foo_lep-foo_gep |
| 27 |
# %bb.0: |
| 28 |
addis 3, 2, .LC0@toc@ha |
| 29 |
ld 3, .LC0@toc@l(3) |
| 30 |
lfsx 1, 0, 3 |
| 31 |
blr |
| 32 |
.long 0 |
| 33 |
.quad 0 |
| 34 |
.Lfunc_end0: |
| 35 |
.size foo, .Lfunc_end0-.Lfunc_begin0 |
| 36 |
.cfi_endproc |
| 37 |
# -- End function |
| 38 |
.section .toc,"aw",@progbits |
| 39 |
.LC0: |
| 40 |
.tc .LCPI0_0[TC],.LCPI0_0 |
| 41 |
|
| 42 |
.section ".note.GNU-stack","",@progbits |