OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [config/] [sh/] [lib1funcs.h] - Blame information for rev 199

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2
   2004, 2005, 2006
3
   Free Software Foundation, Inc.
4
 
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
8
later version.
9
 
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
17
executable.)
18
 
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.
23
 
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.  */
28
 
29
#ifdef __ELF__
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)
36
#else
37
#define LOCAL(X)        L_##X
38
#define FUNC(X)
39
#define HIDDEN_FUNC(X)
40
#define HIDDEN_ALIAS(X,Y) ALIAS (X,Y)
41
#define ENDFUNC(X)
42
#endif
43
 
44
#define CONCAT(A,B)     A##B
45
#define GLOBAL0(U,X)    CONCAT(U,__##X)
46
#define GLOBAL(X)       GLOBAL0(__USER_LABEL_PREFIX__,X)
47
 
48
#define ALIAS(X,Y)      .global GLOBAL(X); .set GLOBAL(X),GLOBAL(Y)
49
 
50
#ifdef __SH2A__
51
#undef FMOVD_WORKS
52
#define FMOVD_WORKS
53
#endif
54
 
55
#ifdef __LITTLE_ENDIAN__
56
#define DR00 fr1
57
#define DR01 fr0
58
#define DR20 fr3
59
#define DR21 fr2
60
#define DR40 fr5
61
#define DR41 fr4
62
#else /* !__LITTLE_ENDIAN__ */
63
#define DR00 fr0
64
#define DR01 fr1
65
#define DR20 fr2
66
#define DR21 fr3
67
#define DR40 fr4
68
#define DR41 fr5
69
#endif /* !__LITTLE_ENDIAN__ */
70
 
71
#ifdef __sh1__
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) \
75
        in_slot; branch dest
76
#else /* ! __sh1__ */
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
81
#endif /* !__sh1__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.