1/* Copyright (C) 2000-2022 Free Software Foundation, Inc.
2   This file is part of the GNU C Library.
3
4   The GNU C Library is free software; you can redistribute it and/or
5   modify it under the terms of the GNU Lesser General Public
6   License as published by the Free Software Foundation; either
7   version 2.1 of the License, or (at your option) any later version.
8
9   The GNU C Library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public
15   License along with the GNU C Library; if not, see
16   <https://www.gnu.org/licenses/>.  */
17
18/*
19    General Purpose Register (GPR) restore routine
20    when Floating Point Registers (FPRs) are saved
21*/
22
23#include <sysdep.h>
24
25ENTRY(_restgpr1_all)
26		.globl	C_TEXT(_restgpr1_13)
27C_TEXT(_restgpr1_13):	lwz	r13,-76(r12)
28		.globl	C_TEXT(_restgpr1_14)
29C_TEXT(_restgpr1_14):	lwz	r14,-72(r12)
30		.globl	C_TEXT(_restgpr1_15)
31C_TEXT(_restgpr1_15):	lwz	r15,-68(r12)
32		.globl	C_TEXT(_restgpr1_16)
33C_TEXT(_restgpr1_16):	lwz	r16,-64(r12)
34		.globl	C_TEXT(_restgpr1_17)
35C_TEXT(_restgpr1_17):	lwz	r17,-60(r12)
36		.globl	C_TEXT(_restgpr1_18)
37C_TEXT(_restgpr1_18):	lwz	r18,-56(r12)
38		.globl	C_TEXT(_restgpr1_19)
39C_TEXT(_restgpr1_19):	lwz	r19,-52(r12)
40		.globl	C_TEXT(_restgpr1_20)
41C_TEXT(_restgpr1_20):	lwz	r20,-48(r12)
42		.globl	C_TEXT(_restgpr1_21)
43C_TEXT(_restgpr1_21):	lwz	r21,-44(r12)
44		.globl	C_TEXT(_restgpr1_22)
45C_TEXT(_restgpr1_22):	lwz	r22,-40(r12)
46		.globl	C_TEXT(_restgpr1_23)
47C_TEXT(_restgpr1_23):	lwz	r23,-36(r12)
48		.globl	C_TEXT(_restgpr1_24)
49C_TEXT(_restgpr1_24):	lwz	r24,-32(r12)
50		.globl	C_TEXT(_restgpr1_25)
51C_TEXT(_restgpr1_25):	lwz	r25,-28(r12)
52		.globl	C_TEXT(_restgpr1_26)
53C_TEXT(_restgpr1_26):	lwz	r26,-24(r12)
54		.globl	C_TEXT(_restgpr1_27)
55C_TEXT(_restgpr1_27):	lwz	r27,-20(r12)
56		.globl	C_TEXT(_restgpr1_28)
57C_TEXT(_restgpr1_28):	lwz	r28,-16(r12)
58		.globl	C_TEXT(_restgpr1_29)
59C_TEXT(_restgpr1_29):	lwz	r29,-12(r12)	#restore r29
60			lwz	r30,-8(r12)	#restore r30
61			lwz	r31,-4(r12)	#restore r31
62			blr			#return
63END (_restgpr1_all)
64