projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gas: sparc: fix collision of registers and pseudo-ops.
[deliverable/binutils-gdb.git]
/
sim
/
common
/
cgen-ops.h
diff --git
a/sim/common/cgen-ops.h
b/sim/common/cgen-ops.h
index ef750ef8876779d627c4fe292a5d7b5754e67a8b..7ff1b4db26a48de44029e27f3c05ebea67d0777b 100644
(file)
--- a/
sim/common/cgen-ops.h
+++ b/
sim/common/cgen-ops.h
@@
-1,5
+1,5
@@
/* Semantics ops support for CGEN-based simulators.
/* Semantics ops support for CGEN-based simulators.
- Copyright (C) 1996-201
5
Free Software Foundation, Inc.
+ Copyright (C) 1996-201
6
Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
This file is part of the GNU Simulators.
Contributed by Cygnus Solutions.
This file is part of the GNU Simulators.
@@
-24,9
+24,10
@@
along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <assert.h>
#include <assert.h>
+/* TODO: This should get moved into sim-inline.h. */
#if defined (__GNUC__) && ! defined (SEMOPS_DEFINE_INLINE)
#define SEMOPS_DEFINE_INLINE
#if defined (__GNUC__) && ! defined (SEMOPS_DEFINE_INLINE)
#define SEMOPS_DEFINE_INLINE
-#define SEMOPS_INLINE
extern inline
+#define SEMOPS_INLINE
EXTERN_INLINE
#else
#define SEMOPS_INLINE
#endif
#else
#define SEMOPS_INLINE
#endif
@@
-403,7
+404,7
@@
SUBWORDXFSI (XF in, int word)
/* Note: typedef struct { SI parts[3]; } XF; */
union { XF in; SI out[3]; } x;
x.in = in;
/* Note: typedef struct { SI parts[3]; } XF; */
union { XF in; SI out[3]; } x;
x.in = in;
- if (CURRENT_TARGET_BYTE_ORDER == B
IG_ENDIAN
)
+ if (CURRENT_TARGET_BYTE_ORDER == B
FD_ENDIAN_BIG
)
return x.out[word];
else
return x.out[2 - word];
return x.out[word];
else
return x.out[2 - word];
@@
-415,7
+416,7
@@
SUBWORDTFSI (TF in, int word)
/* Note: typedef struct { SI parts[4]; } TF; */
union { TF in; SI out[4]; } x;
x.in = in;
/* Note: typedef struct { SI parts[4]; } TF; */
union { TF in; SI out[4]; } x;
x.in = in;
- if (CURRENT_TARGET_BYTE_ORDER == B
IG_ENDIAN
)
+ if (CURRENT_TARGET_BYTE_ORDER == B
FD_ENDIAN_BIG
)
return x.out[word];
else
return x.out[3 - word];
return x.out[word];
else
return x.out[3 - word];
@@
-431,7
+432,7
@@
SEMOPS_INLINE DF
JOINSIDF (SI x0, SI x1)
{
union { SI in[2]; DF out; } x;
JOINSIDF (SI x0, SI x1)
{
union { SI in[2]; DF out; } x;
- if (CURRENT_TARGET_BYTE_ORDER == B
IG_ENDIAN
)
+ if (CURRENT_TARGET_BYTE_ORDER == B
FD_ENDIAN_BIG
)
x.in[0] = x0, x.in[1] = x1;
else
x.in[1] = x0, x.in[0] = x1;
x.in[0] = x0, x.in[1] = x1;
else
x.in[1] = x0, x.in[0] = x1;
@@
-442,7
+443,7
@@
SEMOPS_INLINE XF
JOINSIXF (SI x0, SI x1, SI x2)
{
union { SI in[3]; XF out; } x;
JOINSIXF (SI x0, SI x1, SI x2)
{
union { SI in[3]; XF out; } x;
- if (CURRENT_TARGET_BYTE_ORDER == B
IG_ENDIAN
)
+ if (CURRENT_TARGET_BYTE_ORDER == B
FD_ENDIAN_BIG
)
x.in[0] = x0, x.in[1] = x1, x.in[2] = x2;
else
x.in[2] = x0, x.in[1] = x1, x.in[0] = x2;
x.in[0] = x0, x.in[1] = x1, x.in[2] = x2;
else
x.in[2] = x0, x.in[1] = x1, x.in[0] = x2;
@@
-453,7
+454,7
@@
SEMOPS_INLINE TF
JOINSITF (SI x0, SI x1, SI x2, SI x3)
{
union { SI in[4]; TF out; } x;
JOINSITF (SI x0, SI x1, SI x2, SI x3)
{
union { SI in[4]; TF out; } x;
- if (CURRENT_TARGET_BYTE_ORDER == B
IG_ENDIAN
)
+ if (CURRENT_TARGET_BYTE_ORDER == B
FD_ENDIAN_BIG
)
x.in[0] = x0, x.in[1] = x1, x.in[2] = x2, x.in[3] = x3;
else
x.in[3] = x0, x.in[2] = x1, x.in[1] = x2, x.in[0] = x3;
x.in[0] = x0, x.in[1] = x1, x.in[2] = x2, x.in[3] = x3;
else
x.in[3] = x0, x.in[2] = x1, x.in[1] = x2, x.in[0] = x3;
This page took
0.025181 seconds
and
4
git commands to generate.