Back to index

cell-binutils  2.17cvs20070401
Defines | Variables
tc-m68k.c File Reference
#include "as.h"
#include "safe-ctype.h"
#include "obstack.h"
#include "subsegs.h"
#include "dwarf2dbg.h"
#include "dw2gencfi.h"
#include "opcode/m68k.h"
#include "m68k-parse.h"

Go to the source code of this file.

Defines

#define getone(x)   ((((x)->m_opcode)>>16)&0xffff)
#define gettwo(x)   (((x)->m_opcode)&0xffff)
#define cpu32_ctrl   m68010_ctrl
#define cpu_of_arch(x)   ((x) & (m68000up | mcfisa_a | fido_a))
#define float_of_arch(x)   ((x) & mfloat)
#define mmu_of_arch(x)   ((x) & mmmu)
#define arch_coldfire_p(x)   ((x) & mcfisa_a)
#define arch_coldfire_fpu(x)   ((x) & cfloat)
#define HAVE_LONG_BRANCH(x)   ((x) & (m68020|m68030|m68040|m68060|cpu32|mcfisa_b))
#define op(ex)   ((ex)->exp.X_op)
#define adds(ex)   ((ex)->exp.X_add_symbol)
#define subs(ex)   ((ex)->exp.X_op_symbol)
#define offs(ex)   ((ex)->exp.X_add_number)
#define addword(w)   (the_ins.opcode[the_ins.numo++] = (w))
#define isvar(ex)   (op (ex) != O_constant && op (ex) != O_big)
#define TAB(x, y)   (((x) << 2) + (y))
#define TABTYPE(x)   ((x) >> 2)
#define BYTE   0
#define SHORT   1
#define LONG   2
#define SZ_UNDEF   3
#define BRANCHBWL   0 /* Branch byte, word, or long. */
#define BRABSJUNC   1 /* Absolute jump for LONG, unconditional. */
#define BRABSJCOND   2 /* Absolute jump for LONG, conditional. */
#define BRANCHBW   3 /* Branch byte or word. */
#define FBRANCH   4 /* Coprocessor branch. */
#define DBCCLBR   5 /* DBcc relaxable with a long branch. */
#define DBCCABSJ   6 /* DBcc relaxable with an absolute jump. */
#define PCREL1632   7 /* 16-bit or 32-bit PC-relative. */
#define PCINDEX   8 /* PC + displacement + index. */
#define ABSTOPCREL   9 /* Absolute relax down to 16-bit PC-relative. */
#define TRUNC(X)   ((valueT) (X) & 0xffffffff)
#define SEXT(X)   ((TRUNC (X) ^ 0x80000000) - 0x80000000)
#define issbyte(x)   ((valueT) SEXT (x) + 0x80 < 0x100)
#define isubyte(x)   ((valueT) TRUNC (x) < 0x100)
#define issword(x)   ((valueT) SEXT (x) + 0x8000 < 0x10000)
#define isuword(x)   ((valueT) TRUNC (x) < 0x10000)
#define isbyte(x)   ((valueT) SEXT (x) + 0xff < 0x1ff)
#define isword(x)   ((valueT) SEXT (x) + 0xffff < 0x1ffff)
#define islong(x)   (1)
#define notend(s)
#define get_reloc_code(SIZE, PCREL, OTHER)   NO_RELOC
#define relaxable_symbol(symbol)   1
#define F(SZ, PCREL)   (((SZ) << 1) + (PCREL))
#define MAP(SZ, PCREL, TYPE)   case F(SZ,PCREL): code = (TYPE); break
#define APPEND(STRING)   (strncpy (buf, STRING, space), len = strlen (buf), buf += len, space -= len)
#define MAX_LITTLENUMS   6
#define OPTCOUNT   ((int) (sizeof opt_table / sizeof opt_table[0]))
#define MCC(b1, b2)   (((b1) << 8) | (b2))
#define OPTION_PIC   (OPTION_MD_BASE)
#define OPTION_REGISTER_PREFIX_OPTIONAL   (OPTION_MD_BASE + 1)
#define OPTION_BITWISE_OR   (OPTION_MD_BASE + 2)
#define OPTION_BASE_SIZE_DEFAULT_16   (OPTION_MD_BASE + 3)
#define OPTION_BASE_SIZE_DEFAULT_32   (OPTION_MD_BASE + 4)
#define OPTION_DISP_SIZE_DEFAULT_16   (OPTION_MD_BASE + 5)
#define OPTION_DISP_SIZE_DEFAULT_32   (OPTION_MD_BASE + 6)
#define OPTION_PCREL   (OPTION_MD_BASE + 7)

Variables

const char * m68k_comment_chars = "|"
const char line_comment_chars [] = "#*"
const char line_separator_chars [] = ";"
const char EXP_CHARS [] = "eE"
const char FLT_CHARS [] = "rRsSfFdDxXeEpP"
int flag_want_pic
static int flag_short_refs
static int flag_long_jumps
static int flag_keep_pcrel
int flag_reg_prefix_optional
static int reg_prefix_optional_seen

Define Documentation

#define ABSTOPCREL   9 /* Absolute relax down to 16-bit PC-relative. */
#define adds (   ex)    ((ex)->exp.X_add_symbol)
#define addword (   w)    (the_ins.opcode[the_ins.numo++] = (w))
#define APPEND (   STRING)    (strncpy (buf, STRING, space), len = strlen (buf), buf += len, space -= len)
#define arch_coldfire_fpu (   x)    ((x) & cfloat)
#define arch_coldfire_p (   x)    ((x) & mcfisa_a)
#define BRABSJCOND   2 /* Absolute jump for LONG, conditional. */
#define BRABSJUNC   1 /* Absolute jump for LONG, unconditional. */
#define BRANCHBW   3 /* Branch byte or word. */
#define BRANCHBWL   0 /* Branch byte, word, or long. */
#define BYTE   0
#define cpu32_ctrl   m68010_ctrl
#define cpu_of_arch (   x)    ((x) & (m68000up | mcfisa_a | fido_a))
#define DBCCABSJ   6 /* DBcc relaxable with an absolute jump. */
#define DBCCLBR   5 /* DBcc relaxable with a long branch. */
#define F (   SZ,
  PCREL 
)    (((SZ) << 1) + (PCREL))
#define FBRANCH   4 /* Coprocessor branch. */
#define float_of_arch (   x)    ((x) & mfloat)
#define get_reloc_code (   SIZE,
  PCREL,
  OTHER 
)    NO_RELOC
#define getone (   x)    ((((x)->m_opcode)>>16)&0xffff)
#define gettwo (   x)    (((x)->m_opcode)&0xffff)
#define HAVE_LONG_BRANCH (   x)    ((x) & (m68020|m68030|m68040|m68060|cpu32|mcfisa_b))
#define isbyte (   x)    ((valueT) SEXT (x) + 0xff < 0x1ff)
#define islong (   x)    (1)
#define issbyte (   x)    ((valueT) SEXT (x) + 0x80 < 0x100)
#define issword (   x)    ((valueT) SEXT (x) + 0x8000 < 0x10000)
#define isubyte (   x)    ((valueT) TRUNC (x) < 0x100)
#define isuword (   x)    ((valueT) TRUNC (x) < 0x10000)
#define isvar (   ex)    (op (ex) != O_constant && op (ex) != O_big)
#define isword (   x)    ((valueT) SEXT (x) + 0xffff < 0x1ffff)
#define LONG   2
#define MAP (   SZ,
  PCREL,
  TYPE 
)    case F(SZ,PCREL): code = (TYPE); break
#define MAX_LITTLENUMS   6
#define MCC (   b1,
  b2 
)    (((b1) << 8) | (b2))
#define mmu_of_arch (   x)    ((x) & mmmu)
#define notend (   s)
Value:
(! (notend_table[(unsigned char) *s]                           \
      || (*s == ':'                                     \
         && alt_notend_table[(unsigned char) s[1]])))
#define offs (   ex)    ((ex)->exp.X_add_number)
#define op (   ex)    ((ex)->exp.X_op)
#define OPTCOUNT   ((int) (sizeof opt_table / sizeof opt_table[0]))
#define OPTION_BITWISE_OR   (OPTION_MD_BASE + 2)
#define OPTION_PCREL   (OPTION_MD_BASE + 7)
#define OPTION_PIC   (OPTION_MD_BASE)
#define PCINDEX   8 /* PC + displacement + index. */
#define PCREL1632   7 /* 16-bit or 32-bit PC-relative. */
#define relaxable_symbol (   symbol)    1
#define SEXT (   X)    ((TRUNC (X) ^ 0x80000000) - 0x80000000)
#define SHORT   1
#define subs (   ex)    ((ex)->exp.X_op_symbol)
#define SZ_UNDEF   3
#define TAB (   x,
  y 
)    (((x) << 2) + (y))
#define TABTYPE (   x)    ((x) >> 2)
#define TRUNC (   X)    ((valueT) (X) & 0xffffffff)

Variable Documentation

const char EXP_CHARS[] = "eE"

Definition at line 62 of file tc-m68k.c.

int flag_keep_pcrel [static]

Definition at line 81 of file tc-m68k.c.

int flag_long_jumps [static]

Definition at line 80 of file tc-m68k.c.

Definition at line 86 of file tc-m68k.c.

int flag_short_refs [static]

Definition at line 79 of file tc-m68k.c.

Definition at line 77 of file tc-m68k.c.

const char FLT_CHARS[] = "rRsSfFdDxXeEpP"

Definition at line 67 of file tc-m68k.c.

const char line_comment_chars[] = "#*"

Definition at line 57 of file tc-m68k.c.

Definition at line 59 of file tc-m68k.c.

Definition at line 47 of file tc-m68k.c.

Definition at line 90 of file tc-m68k.c.