summaryrefslogtreecommitdiffstats
path: root/bridges/source/cpp_uno/gcc3_linux_loongarch64/call.s
blob: d27b5bd8a55268d5adc8fad2578881ba5c2781fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/* -*- tab-width: 4; indent-tabs-mode: nil; fill-column: 100 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

        .text
        .globl	privateSnippetExecutor
.LFB0 = .
        .cfi_startproc
        .cfi_personality 0x80,DW.ref.__gxx_personality_v0
        .cfi_lsda 0,.LLSDA0
        .type	privateSnippetExecutor, @function
privateSnippetExecutor:
        addi.d	$sp,$sp,-160
        .cfi_def_cfa_offset 160
        st.d	$ra,$sp,152
        .cfi_offset 1, -8
.LEHB0 = .
	// Clear return value space
	st.d	$zero,$sp,0
	st.d	$zero,$sp,8
        // Save the float point registers
        fst.d	$f0,$sp,80
        fst.d	$f1,$sp,88
        fst.d	$f2,$sp,96
        fst.d	$f3,$sp,104
        fst.d	$f4,$sp,112
        fst.d	$f5,$sp,120
        fst.d	$f6,$sp,128
        fst.d	$f7,$sp,136
        // Save the general purpose registers
        st.d	$a0,$sp,16
        st.d	$a1,$sp,24
        st.d	$a2,$sp,32
        st.d	$a3,$sp,40
        st.d	$a4,$sp,48
        st.d	$a5,$sp,56
        st.d	$a6,$sp,64
        st.d	$a7,$sp,72
        // Load arguments
        // a0=index
        move	$a0,$t6
        // a1=offset
        move	$a1,$t7
        // a2=gpregptr
        addi.d	$a2,$sp,16
        // a3=fpregptr
        addi.d	$a3,$sp,80
        // a4=ovrflw
        addi.d	$a4,$sp,160
        // a5=retregptr
        move	$a5,$sp

        // Call cpp_vtable_call
        jirl	$ra,$t5,0

.LEHE0 = .
        // Perform return value
	beq	$a0,$zero,.Lintfp
	blt	$zero,$a0,.Lfpint
        fld.d	$f0,$sp,0
        fld.d	$f1,$sp,8
        ld.d	$a0,$sp,0
        ld.d	$a1,$sp,8
	b	.Lfinish
.Lintfp:
	ld.d	$a0,$sp,0
	fld.d	$f0,$sp,8
	b	.Lfinish
.Lfpint:
	fld.d	$f0,$sp,0
	ld.d	$a0,$sp,8
.Lfinish:
        ld.d	$ra,$sp,152
        .cfi_restore 1
        addi.d	$sp,$sp,160
        .cfi_def_cfa_offset 0
        jr	$ra
        .cfi_endproc

.LFE0:
        .globl	__gxx_personality_v0
        .section	.gcc_except_table,"aw",@progbits
        .align	3
.LLSDA0:
        .byte	0xff
        .byte	0x80
        .uleb128 .LLSDATT0-.LLSDATTD0
.LLSDATTD0:
        .byte	0x1
        .uleb128 .LLSDACSE0-.LLSDACSB0
.LLSDACSB0:
        .uleb128 .LEHB0-.LFB0
        .uleb128 .LEHE0-.LEHB0
        .uleb128 0
        .uleb128 0
.LLSDACSE0:
        .byte	0x7f
        .byte	0
        .align	3
        .8byte	DW.ref._ZTIi
.LLSDATT0:
        .byte	0x1
        .byte	0
        .text
        .size	privateSnippetExecutor, .-privateSnippetExecutor
        .hidden	DW.ref._ZTIi
        .weak	DW.ref._ZTIi
        .section	.data.DW.ref._ZTIi,"awG",@progbits,DW.ref._ZTIi,comdat
        .align	3
        .type	DW.ref._ZTIi, @object
        .size	DW.ref._ZTIi, 8
DW.ref._ZTIi:
        .dword	_ZTIi
        .hidden	DW.ref.__gxx_personality_v0
        .weak	DW.ref.__gxx_personality_v0
        .section	.data.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
        .align	3
        .type	DW.ref.__gxx_personality_v0, @object
        .size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
        .dword	__gxx_personality_v0

/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */