xref: /AOO41X/main/bridges/source/cpp_uno/gcc3_linux_ia64/call.s (revision b5da552ccefc4034e06a43bfae43fb8a8b64a7ad)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22/* ia64 support code for OpenOffice C++/UNO bridging
23 *
24 * Caolan McNamara <caolanm@redhat.com>
25 */
26    .text
27    .align 16
28    .global privateSnippetExecutor#
29    .proc privateSnippetExecutor#
30privateSnippetExecutor:
31    adds r15 = 8, gp    /* r15 now points to real gp value*/
32    ;;
33    ld8 r14 = [gp]      /* load nOffsetAndIndex into a handy register */
34    ld8 gp = [r15]      /* load real gp value into gp */
35    ;;
36    /* store the address where large structs are "returned" into a handy register */
37    mov r15 = r8
38    ;;
39    br cpp_vtable_call# /* call cpp_vtable_call which'll suck out r14 */
40    ;;
41    .endp privateSnippetExecutor#
42