]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config/rs6000/crtrestvr.S
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / rs6000 / crtrestvr.S
CommitLineData
cef20746 1/* Routines for restoring vector registers.
2
f1717362 3 Copyright (C) 2012-2016 Free Software Foundation, Inc.
cef20746 4 Written by Alan Modra, IBM
5
6 This file is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 3, or (at your option) any
9 later version.
10
11 This file is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
15
16 Under Section 7 of GPL version 3, you are granted additional
17 permissions described in the GCC Runtime Library Exception, version
18 3.1, as published by the Free Software Foundation.
19
20 You should have received a copy of the GNU General Public License and
21 a copy of the GCC Runtime Library Exception along with this program;
22 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23 <http://www.gnu.org/licenses/>. */
24
25/* On PowerPC64 Linux, these functions are provided by the linker. */
26#ifndef __powerpc64__
27
28#undef __ALTIVEC__
29#define __ALTIVEC__ 1
30 #include "ppc-asm.h"
31
32/* Called with r0 pointing just beyond the end of the vector save area. */
33
34 .section ".text"
35CFI_STARTPROC
36HIDDEN_FUNC(_restvr_20)
37 li r11,-192
38 lvx v20,r11,r0
39HIDDEN_FUNC(_restvr_21)
40 li r11,-176
41 lvx v21,r11,r0
42HIDDEN_FUNC(_restvr_22)
43 li r11,-160
44 lvx v22,r11,r0
45HIDDEN_FUNC(_restvr_23)
46 li r11,-144
47 lvx v23,r11,r0
48HIDDEN_FUNC(_restvr_24)
49 li r11,-128
50 lvx v24,r11,r0
51HIDDEN_FUNC(_restvr_25)
52 li r11,-112
53 lvx v25,r11,r0
54HIDDEN_FUNC(_restvr_26)
55 li r11,-96
56 lvx v26,r11,r0
57HIDDEN_FUNC(_restvr_27)
58 li r11,-80
59 lvx v27,r11,r0
60HIDDEN_FUNC(_restvr_28)
61 li r11,-64
62 lvx v28,r11,r0
63HIDDEN_FUNC(_restvr_29)
64 li r11,-48
65 lvx v29,r11,r0
66HIDDEN_FUNC(_restvr_30)
67 li r11,-32
68 lvx v30,r11,r0
69HIDDEN_FUNC(_restvr_31)
70 li r11,-16
71 lvx v31,r11,r0
72 blr
73FUNC_END(_restvr_31)
74FUNC_END(_restvr_30)
75FUNC_END(_restvr_29)
76FUNC_END(_restvr_28)
77FUNC_END(_restvr_27)
78FUNC_END(_restvr_26)
79FUNC_END(_restvr_25)
80FUNC_END(_restvr_24)
81FUNC_END(_restvr_23)
82FUNC_END(_restvr_22)
83FUNC_END(_restvr_21)
84FUNC_END(_restvr_20)
85CFI_ENDPROC
86
87#endif