]>
git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/csky/sysdep.h
cff0ead958671e74eaf890f00f30db9ebcca4779
1 /* Assembler macros for C-SKY.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <https://www.gnu.org/licenses/>. */
19 #include <sysdeps/generic/sysdep.h>
24 # define ASM_SIZE_DIRECTIVE(name) .size name,.-name
26 /* Define an entry point visible from C. */
27 # define ENTRY(name) \
29 .type name,@function; \
38 ASM_SIZE_DIRECTIVE(name)
40 /* If compiled for profiling, call `mcount' at the start of each function. */
43 # define CALL_MCOUNT \
48 lrw gb, .Lgetpc@GOTPC; \
50 lrw t1, _mcount@PLT; \
51 ldr.w t0, (gb, t1 << 0); \
54 # define CALL_MCOUNT \
60 # define CALL_MCOUNT /* Do nothing. */
63 # if defined (__CK860__)
64 /* Instruction fetch will be faster when the label is 16 bytes aligned.
65 Filling with nop instruction to avoid extra jump. */
66 # define LABLE_ALIGN \
69 # define PRE_BNEZAD(R)
71 # define BNEZAD(R, L) \
74 # define LABLE_ALIGN \
77 # define PRE_BNEZAD(R) \
80 # define BNEZAD(R, L) \