1 /* Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
3 Free Software Foundation, Inc.
5 This file is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the
7 Free Software Foundation; either version 2, or (at your option) any
10 In addition to the permissions in the GNU General Public License, the
11 Free Software Foundation gives you unlimited permission to link the
12 compiled version of this file into combinations with other programs,
13 and to distribute those combinations without any restriction coming
14 from the use of this file. (The General Public License restrictions
15 do apply in other respects; for example, they cover modification of
16 the file, and distribution when not linked into a combine
19 This file is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 General Public License for more details.
24 You should have received a copy of the GNU General Public License
25 along with this program; see the file COPYING. If not, write to
26 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
27 Boston, MA 02110-1301, USA. */
30 #define LOCAL(X) .L_##X
31 #define FUNC(X) .type X,@function
32 #define HIDDEN_FUNC(X) FUNC(X); .hidden X
33 #define HIDDEN_ALIAS(X,Y) ALIAS (X,Y); .hidden GLOBAL(X)
34 #define ENDFUNC0(X) .Lfe_##X: .size X,.Lfe_##X-X
35 #define ENDFUNC(X) ENDFUNC0(X)
37 #define LOCAL(X) L_##X
39 #define HIDDEN_FUNC(X)
40 #define HIDDEN_ALIAS(X,Y) ALIAS (X,Y)
44 #define CONCAT(A,B) A##B
45 #define GLOBAL0(U,X) CONCAT(U,__##X)
46 #define GLOBAL(X) GLOBAL0(__USER_LABEL_PREFIX__,X)
48 #define ALIAS(X,Y) .global GLOBAL(X); .set GLOBAL(X),GLOBAL(Y)
55 #ifdef __LITTLE_ENDIAN__
62 #else /* !__LITTLE_ENDIAN__ */
69 #endif /* !__LITTLE_ENDIAN__ */
72 #define SL(branch, dest, in_slot, in_slot_arg2) \
73 in_slot, in_slot_arg2; branch dest
74 #define SL1(branch, dest, in_slot) \
77 #define SL(branch, dest, in_slot, in_slot_arg2) \
78 branch##.s dest; in_slot, in_slot_arg2
79 #define SL1(branch, dest, in_slot) \
80 branch##/s dest; in_slot