Back to index

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

Go to the source code of this file.

Defines

#define U0xffffffff   ((((unsigned long) 1 << 16) << 16) - 1)
#define U0x80000000   ((((unsigned long) 1 << 16) << 15))
#define DEFAULT_ARCH   "sparclite"
#define INSN_BIG_ENDIAN
#define isoctal(c)   ((unsigned) ((c) - '0') < 8)
#define OPTION_BUMP   (OPTION_MD_BASE)
#define OPTION_SPARC   (OPTION_MD_BASE + 1)
#define OPTION_XARCH   (OPTION_MD_BASE + 2)
#define OPTION_ENFORCE_ALIGNED_DATA   (OPTION_MD_BASE + 10)
#define OPTION_LITTLE_ENDIAN_DATA   (OPTION_MD_BASE + 11)
#define OPTION_RELAX   (OPTION_MD_BASE + 14)
#define OPTION_NO_RELAX   (OPTION_MD_BASE + 15)
#define SPECIAL_CASE_NONE   0
#define SPECIAL_CASE_SET   1
#define SPECIAL_CASE_SETSW   2
#define SPECIAL_CASE_SETX   3
#define SPECIAL_CASE_FDIV   4
#define NOP_INSN   0x01000000
#define OR_INSN   0x80100000
#define XOR_INSN   0x80180000
#define FMOVS_INSN   0x81A00020
#define SETHI_INSN   0x01000000
#define SLLX_INSN   0x81281000
#define SRA_INSN   0x81380000
#define SIGNEXT32(x)   ((((x) & U0xffffffff) ^ U0x80000000) - U0x80000000)
#define MAX_LITTLENUMS   6
#define G0   0
#define O7   15
#define XCC   (2 << 20)
#define COND(x)   (((x)&0xf)<<25)
#define CONDA   COND(0x8)
#define INSN_BPA   (F2(0,1) | CONDA | BPRED | XCC)
#define INSN_BA   (F2(0,2) | CONDA)
#define INSN_OR   F3(2, 0x2, 0)
#define INSN_NOP   F2(0,4)

Functions

static struct sparc_arch
*lookup_arch 
PARAMS ((char *))
static void init_default_arch PARAMS ((void))
static int sparc_ip PARAMS ((char *, const struct sparc_opcode **))
static int in_signed_range PARAMS ((bfd_signed_vma, bfd_signed_vma))
static int in_unsigned_range PARAMS ((bfd_vma, bfd_vma))
static int sparc_ffs PARAMS ((unsigned int))
static void synthetize_setuw PARAMS ((const struct sparc_opcode *))
static bfd_vma BSR PARAMS ((bfd_vma, int))
static int cmp_reg_entry PARAMS ((const PTR, const PTR))
static int parse_keyword_arg PARAMS ((int(*)(const char *), char **, int *))
static int parse_const_expr_arg PARAMS ((char **, int *))
static int get_expression PARAMS ((char *str))

Variables

static char * default_arch = DEFAULT_ARCH
static int default_init_p

Define Documentation

#define COND (   x)    (((x)&0xf)<<25)
#define CONDA   COND(0x8)
#define DEFAULT_ARCH   "sparclite"

Definition at line 61 of file tc-sparc.c.

#define FMOVS_INSN   0x81A00020
#define G0   0
#define INSN_BA   (F2(0,2) | CONDA)
#define INSN_BIG_ENDIAN
Value:
(target_big_endian \
                      || default_arch_type == sparc86x \
                      || SPARC_OPCODE_ARCH_V9_P (max_architecture))
#define INSN_BPA   (F2(0,1) | CONDA | BPRED | XCC)
#define INSN_NOP   F2(0,4)
#define INSN_OR   F3(2, 0x2, 0)
#define isoctal (   c)    ((unsigned) ((c) - '0') < 8)
#define MAX_LITTLENUMS   6
#define NOP_INSN   0x01000000
#define O7   15
#define OPTION_BUMP   (OPTION_MD_BASE)
#define OPTION_NO_RELAX   (OPTION_MD_BASE + 15)
#define OPTION_RELAX   (OPTION_MD_BASE + 14)
#define OPTION_SPARC   (OPTION_MD_BASE + 1)
#define OPTION_XARCH   (OPTION_MD_BASE + 2)
#define OR_INSN   0x80100000
#define SETHI_INSN   0x01000000
#define SIGNEXT32 (   x)    ((((x) & U0xffffffff) ^ U0x80000000) - U0x80000000)
#define SLLX_INSN   0x81281000
#define SPECIAL_CASE_FDIV   4
#define SPECIAL_CASE_NONE   0
#define SPECIAL_CASE_SET   1
#define SPECIAL_CASE_SETSW   2
#define SPECIAL_CASE_SETX   3
#define SRA_INSN   0x81380000
#define U0x80000000   ((((unsigned long) 1 << 16) << 15))

Definition at line 38 of file tc-sparc.c.

#define U0xffffffff   ((((unsigned long) 1 << 16) << 16) - 1)

Definition at line 37 of file tc-sparc.c.

#define XCC   (2 << 20)
#define XOR_INSN   0x80180000

Function Documentation

static struct sparc_arch* lookup_arch PARAMS ( (char *)  ) [static, read]
static void init_default_arch PARAMS ( (void)  ) [static]
static int sparc_ip PARAMS ( (char *, const struct sparc_opcode **)  ) [static]
static int in_signed_range PARAMS ( (bfd_signed_vma, bfd_signed_vma ) [static]
static int in_unsigned_range PARAMS ( (bfd_vma, bfd_vma ) [static]
static int sparc_ffs PARAMS ( (unsigned int ) [static]
static void synthetize_setuw PARAMS ( (const struct sparc_opcode *)  ) [static]
static bfd_vma BSR PARAMS ( (bfd_vma, int ) [static]
static int cmp_reg_entry PARAMS ( (const PTR, const PTR ) [static]
static int parse_keyword_arg PARAMS ( (int(*)(const char *), char **, int *)  ) [static]
static int parse_const_expr_arg PARAMS ( (char **, int *)  ) [static]
static int get_expression PARAMS ( (char *str ) [static]

Variable Documentation

char* default_arch = DEFAULT_ARCH [static]

Definition at line 63 of file tc-sparc.c.

int default_init_p [static]

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