]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/s390/strcpy-z900.S
Remove "Contributed by" lines
[thirdparty/glibc.git] / sysdeps / s390 / strcpy-z900.S
CommitLineData
914a4e05 1/* strcpy - copy a string from source to destination. 64/31 bit S/390 version.
2b778ceb 2 Copyright (C) 2001-2021 Free Software Foundation, Inc.
ffeac417 3 This file is part of the GNU C Library.
847b055c 4
41bdb6e2
AJ
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
847b055c
AJ
9
10 The GNU C Library is distributed in the hope that it will be useful,
41bdb6e2 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
847b055c 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 13 Lesser General Public License for more details.
847b055c 14
41bdb6e2 15 You should have received a copy of the GNU Lesser General Public
59ba27a6 16 License along with the GNU C Library; if not, see
5a82c748 17 <https://www.gnu.org/licenses/>. */
847b055c 18
ffeac417
UD
19/* INPUT PARAMETERS
20 %r2 = address of destination
21 %r3 = address of source. */
847b055c 22
914a4e05 23#include <ifunc-strcpy.h>
847b055c
AJ
24#include "sysdep.h"
25#include "asm-syntax.h"
26
914a4e05
SL
27#if HAVE_STRCPY_Z900_G5
28# if defined __s390x__
29# define SLGR slgr
30# define LGR lgr
31# else
32# define SLGR slr
33# define LGR lr
34# endif /* ! defined __s390x__ */
35
ffeac417 36 .text
914a4e05
SL
37ENTRY(STRCPY_Z900_G5)
38 SLGR %r0,%r0
39 LGR %r1,%r2
ffeac417 400: mvst %r1,%r3
847b055c
AJ
41 jo 0b
42 br %r14
914a4e05
SL
43END(STRCPY_Z900_G5)
44
45# undef SLGR
46# undef LGR
47
48# if ! HAVE_STRCPY_IFUNC
49strong_alias (STRCPY_Z900_G5, strcpy)
50# endif
51
52# if defined SHARED && IS_IN (libc)
53strong_alias (STRCPY_Z900_G5, __GI_strcpy)
54# endif
55#endif