xref: /llvm-project/lldb/test/Shell/Breakpoint/Inputs/ppc64-localentry.s (revision 87aa9c9e4d41ed881453e2fab85b3d25f648bb55)
1	.text
2	.abiversion 2
3
4	.globl	lfunc
5	.p2align	4
6	.type	lfunc,@function
7lfunc:                                  # @lfunc
8.Lfunc_begin0:
9.Lfunc_gep0:
10	addis 2, 12, .TOC.-.Lfunc_gep0@ha
11	addi 2, 2, .TOC.-.Lfunc_gep0@l
12.Lfunc_lep0:
13	.localentry	lfunc, .Lfunc_lep0-.Lfunc_gep0
14# BB#0:
15	mr 4, 3
16	addis 3, 2, .LC0@toc@ha
17	ld 3, .LC0@toc@l(3)
18	stw 4, -12(1)
19	lwz 4, 0(3)
20	lwz 5, -12(1)
21	mullw 4, 4, 5
22	extsw 3, 4
23	blr
24	.long	0
25	.quad	0
26.Lfunc_end0:
27	.size	lfunc, .Lfunc_end0-.Lfunc_begin0
28
29	.globl	simple
30	.p2align	4
31	.type	simple,@function
32simple:                                 # @simple
33.Lfunc_begin1:
34# %bb.0:                                # %entry
35	mr 4, 3
36	stw 4, -12(1)
37	lwz 4, -12(1)
38	mulli 4, 4, 10
39	extsw 3, 4
40	blr
41	.long	0
42	.quad	0
43.Lfunc_end1:
44	.size	simple, .Lfunc_end1-.Lfunc_begin1
45
46	.section	.toc,"aw",@progbits
47.LC0:
48	.tc g_foo[TC],g_foo
49	.type	g_foo,@object           # @g_foo
50	.data
51	.globl	g_foo
52	.p2align	2
53g_foo:
54	.long	2                       # 0x2
55	.size	g_foo, 4
56