More whitespace fixes.

This commit is contained in:
Alan Modra 2001-05-23 03:25:03 +00:00
parent cba24d7dbd
commit 2c32d9a41f
1 changed files with 143 additions and 143 deletions

View File

@ -654,7 +654,7 @@ arc_opcode_init_insert ()
int int
arc_opcode_limm_p (limmp) arc_opcode_limm_p (limmp)
long *limmp; long *limmp;
{ {
if (limmp) if (limmp)
*limmp = limm; *limmp = limm;
@ -668,12 +668,12 @@ arc_opcode_limm_p (limmp)
static arc_insn static arc_insn
insert_reg (insn, operand, mods, reg, value, errmsg) insert_reg (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods; int mods;
const struct arc_operand_value *reg; const struct arc_operand_value *reg;
long value; long value;
const char **errmsg; const char **errmsg;
{ {
static char buf[100]; static char buf[100];
enum operand op_type = OP_NONE; enum operand op_type = OP_NONE;
@ -800,12 +800,12 @@ insert_reg (insn, operand, mods, reg, value, errmsg)
static arc_insn static arc_insn
insert_flag (insn, operand, mods, reg, value, errmsg) insert_flag (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand ATTRIBUTE_UNUSED; const struct arc_operand *operand ATTRIBUTE_UNUSED;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value *reg ATTRIBUTE_UNUSED; const struct arc_operand_value *reg ATTRIBUTE_UNUSED;
long value ATTRIBUTE_UNUSED; long value ATTRIBUTE_UNUSED;
const char **errmsg ATTRIBUTE_UNUSED; const char **errmsg ATTRIBUTE_UNUSED;
{ {
/* We can't store anything in the insn until we've parsed the registers. /* We can't store anything in the insn until we've parsed the registers.
Just record the fact that we've got this flag. `insert_reg' will use it Just record the fact that we've got this flag. `insert_reg' will use it
@ -818,12 +818,12 @@ insert_flag (insn, operand, mods, reg, value, errmsg)
static arc_insn static arc_insn
insert_nullify (insn, operand, mods, reg, value, errmsg) insert_nullify (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value *reg ATTRIBUTE_UNUSED; const struct arc_operand_value *reg ATTRIBUTE_UNUSED;
long value; long value;
const char **errmsg ATTRIBUTE_UNUSED; const char **errmsg ATTRIBUTE_UNUSED;
{ {
nullify_p = 1; nullify_p = 1;
insn |= (value & ((1 << operand->bits) - 1)) << operand->shift; insn |= (value & ((1 << operand->bits) - 1)) << operand->shift;
@ -837,12 +837,12 @@ insert_nullify (insn, operand, mods, reg, value, errmsg)
static arc_insn static arc_insn
insert_flagfinish (insn, operand, mods, reg, value, errmsg) insert_flagfinish (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value *reg ATTRIBUTE_UNUSED; const struct arc_operand_value *reg ATTRIBUTE_UNUSED;
long value ATTRIBUTE_UNUSED; long value ATTRIBUTE_UNUSED;
const char **errmsg ATTRIBUTE_UNUSED; const char **errmsg ATTRIBUTE_UNUSED;
{ {
if (flag_p && !flagshimm_handled_p) if (flag_p && !flagshimm_handled_p)
{ {
@ -858,12 +858,12 @@ insert_flagfinish (insn, operand, mods, reg, value, errmsg)
static arc_insn static arc_insn
insert_cond (insn, operand, mods, reg, value, errmsg) insert_cond (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value *reg ATTRIBUTE_UNUSED; const struct arc_operand_value *reg ATTRIBUTE_UNUSED;
long value; long value;
const char **errmsg ATTRIBUTE_UNUSED; const char **errmsg ATTRIBUTE_UNUSED;
{ {
cond_p = 1; cond_p = 1;
insn |= (value & ((1 << operand->bits) - 1)) << operand->shift; insn |= (value & ((1 << operand->bits) - 1)) << operand->shift;
@ -878,12 +878,12 @@ insert_cond (insn, operand, mods, reg, value, errmsg)
static arc_insn static arc_insn
insert_forcelimm (insn, operand, mods, reg, value, errmsg) insert_forcelimm (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand ATTRIBUTE_UNUSED; const struct arc_operand *operand ATTRIBUTE_UNUSED;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value *reg ATTRIBUTE_UNUSED; const struct arc_operand_value *reg ATTRIBUTE_UNUSED;
long value ATTRIBUTE_UNUSED; long value ATTRIBUTE_UNUSED;
const char **errmsg ATTRIBUTE_UNUSED; const char **errmsg ATTRIBUTE_UNUSED;
{ {
cond_p = 1; cond_p = 1;
return insn; return insn;
@ -891,12 +891,12 @@ insert_forcelimm (insn, operand, mods, reg, value, errmsg)
static arc_insn static arc_insn
insert_addr_wb (insn, operand, mods, reg, value, errmsg) insert_addr_wb (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value *reg ATTRIBUTE_UNUSED; const struct arc_operand_value *reg ATTRIBUTE_UNUSED;
long value ATTRIBUTE_UNUSED; long value ATTRIBUTE_UNUSED;
const char **errmsg ATTRIBUTE_UNUSED; const char **errmsg ATTRIBUTE_UNUSED;
{ {
addrwb_p = 1 << operand->shift; addrwb_p = 1 << operand->shift;
return insn; return insn;
@ -904,12 +904,12 @@ insert_addr_wb (insn, operand, mods, reg, value, errmsg)
static arc_insn static arc_insn
insert_base (insn, operand, mods, reg, value, errmsg) insert_base (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods; int mods;
const struct arc_operand_value *reg; const struct arc_operand_value *reg;
long value; long value;
const char **errmsg; const char **errmsg;
{ {
if (reg != NULL) if (reg != NULL)
{ {
@ -955,12 +955,12 @@ insert_base (insn, operand, mods, reg, value, errmsg)
static arc_insn static arc_insn
insert_offset (insn, operand, mods, reg, value, errmsg) insert_offset (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods; int mods;
const struct arc_operand_value *reg; const struct arc_operand_value *reg;
long value; long value;
const char **errmsg; const char **errmsg;
{ {
long minval, maxval; long minval, maxval;
@ -1050,11 +1050,11 @@ insert_offset (insn, operand, mods, reg, value, errmsg)
static long static long
extract_st_syntax (insn, operand, mods, opval, invalid) extract_st_syntax (insn, operand, mods, opval, invalid)
arc_insn *insn; arc_insn *insn;
const struct arc_operand *operand ATTRIBUTE_UNUSED; const struct arc_operand *operand ATTRIBUTE_UNUSED;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value **opval ATTRIBUTE_UNUSED; const struct arc_operand_value **opval ATTRIBUTE_UNUSED;
int *invalid; int *invalid;
{ {
#define ST_SYNTAX(V,B,O) \ #define ST_SYNTAX(V,B,O) \
((ls_operand[LS_VALUE] == (V) && \ ((ls_operand[LS_VALUE] == (V) && \
@ -1081,7 +1081,7 @@ extract_st_syntax (insn, operand, mods, opval, invalid)
int int
arc_limm_fixup_adjust(insn) arc_limm_fixup_adjust(insn)
arc_insn insn; arc_insn insn;
{ {
int retval = 0; int retval = 0;
@ -1100,12 +1100,12 @@ arc_limm_fixup_adjust(insn)
static arc_insn static arc_insn
insert_st_syntax (insn, operand, mods, reg, value, errmsg) insert_st_syntax (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand ATTRIBUTE_UNUSED; const struct arc_operand *operand ATTRIBUTE_UNUSED;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value *reg ATTRIBUTE_UNUSED; const struct arc_operand_value *reg ATTRIBUTE_UNUSED;
long value ATTRIBUTE_UNUSED; long value ATTRIBUTE_UNUSED;
const char **errmsg; const char **errmsg;
{ {
if (ST_SYNTAX(OP_SHIMM,OP_REG,OP_NONE) && shimm != 0) if (ST_SYNTAX(OP_SHIMM,OP_REG,OP_NONE) && shimm != 0)
{ {
@ -1185,12 +1185,12 @@ insert_st_syntax (insn, operand, mods, reg, value, errmsg)
static arc_insn static arc_insn
insert_ld_syntax (insn, operand, mods, reg, value, errmsg) insert_ld_syntax (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand ATTRIBUTE_UNUSED; const struct arc_operand *operand ATTRIBUTE_UNUSED;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value *reg ATTRIBUTE_UNUSED; const struct arc_operand_value *reg ATTRIBUTE_UNUSED;
long value ATTRIBUTE_UNUSED; long value ATTRIBUTE_UNUSED;
const char **errmsg; const char **errmsg;
{ {
#define LD_SYNTAX(D,B,O) \ #define LD_SYNTAX(D,B,O) \
((ls_operand[LS_DEST] == (D) && \ ((ls_operand[LS_DEST] == (D) && \
@ -1226,11 +1226,11 @@ insert_ld_syntax (insn, operand, mods, reg, value, errmsg)
static long static long
extract_ld_syntax (insn, operand, mods, opval, invalid) extract_ld_syntax (insn, operand, mods, opval, invalid)
arc_insn *insn; arc_insn *insn;
const struct arc_operand *operand ATTRIBUTE_UNUSED; const struct arc_operand *operand ATTRIBUTE_UNUSED;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value **opval ATTRIBUTE_UNUSED; const struct arc_operand_value **opval ATTRIBUTE_UNUSED;
int *invalid; int *invalid;
{ {
int test = insn[0] & I(-1); int test = insn[0] & I(-1);
@ -1257,12 +1257,12 @@ extract_ld_syntax (insn, operand, mods, opval, invalid)
static arc_insn static arc_insn
insert_shimmfinish (insn, operand, mods, reg, value, errmsg) insert_shimmfinish (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value *reg ATTRIBUTE_UNUSED; const struct arc_operand_value *reg ATTRIBUTE_UNUSED;
long value ATTRIBUTE_UNUSED; long value ATTRIBUTE_UNUSED;
const char **errmsg ATTRIBUTE_UNUSED; const char **errmsg ATTRIBUTE_UNUSED;
{ {
if (shimm_p) if (shimm_p)
insn |= (shimm & ((1 << operand->bits) - 1)) << operand->shift; insn |= (shimm & ((1 << operand->bits) - 1)) << operand->shift;
@ -1283,12 +1283,12 @@ insert_shimmfinish (insn, operand, mods, reg, value, errmsg)
static arc_insn static arc_insn
insert_limmfinish (insn, operand, mods, reg, value, errmsg) insert_limmfinish (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand ATTRIBUTE_UNUSED; const struct arc_operand *operand ATTRIBUTE_UNUSED;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value *reg ATTRIBUTE_UNUSED; const struct arc_operand_value *reg ATTRIBUTE_UNUSED;
long value ATTRIBUTE_UNUSED; long value ATTRIBUTE_UNUSED;
const char **errmsg ATTRIBUTE_UNUSED; const char **errmsg ATTRIBUTE_UNUSED;
{ {
#if 0 #if 0
if (limm_p) if (limm_p)
@ -1299,12 +1299,12 @@ insert_limmfinish (insn, operand, mods, reg, value, errmsg)
static arc_insn static arc_insn
insert_jumpflags (insn, operand, mods, reg, value, errmsg) insert_jumpflags (insn, operand, mods, reg, value, errmsg)
arc_insn insn; arc_insn insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value *reg ATTRIBUTE_UNUSED; const struct arc_operand_value *reg ATTRIBUTE_UNUSED;
long value; long value;
const char **errmsg; const char **errmsg;
{ {
if (!flag_p) if (!flag_p)
{ {
@ -1434,11 +1434,11 @@ arc_opcode_init_extract ()
static long static long
extract_reg (insn, operand, mods, opval, invalid) extract_reg (insn, operand, mods, opval, invalid)
arc_insn *insn; arc_insn *insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods; int mods;
const struct arc_operand_value **opval; const struct arc_operand_value **opval;
int *invalid ATTRIBUTE_UNUSED; int *invalid ATTRIBUTE_UNUSED;
{ {
int regno; int regno;
long value; long value;
@ -1550,11 +1550,11 @@ extract_reg (insn, operand, mods, opval, invalid)
static long static long
extract_flag (insn, operand, mods, opval, invalid) extract_flag (insn, operand, mods, opval, invalid)
arc_insn *insn; arc_insn *insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value **opval; const struct arc_operand_value **opval;
int *invalid ATTRIBUTE_UNUSED; int *invalid ATTRIBUTE_UNUSED;
{ {
int f; int f;
const struct arc_operand_value *val; const struct arc_operand_value *val;
@ -1581,11 +1581,11 @@ extract_flag (insn, operand, mods, opval, invalid)
static long static long
extract_cond (insn, operand, mods, opval, invalid) extract_cond (insn, operand, mods, opval, invalid)
arc_insn *insn; arc_insn *insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value **opval; const struct arc_operand_value **opval;
int *invalid ATTRIBUTE_UNUSED; int *invalid ATTRIBUTE_UNUSED;
{ {
long cond; long cond;
const struct arc_operand_value *val; const struct arc_operand_value *val;
@ -1608,11 +1608,11 @@ extract_cond (insn, operand, mods, opval, invalid)
static long static long
extract_reladdr (insn, operand, mods, opval, invalid) extract_reladdr (insn, operand, mods, opval, invalid)
arc_insn *insn; arc_insn *insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value **opval ATTRIBUTE_UNUSED; const struct arc_operand_value **opval ATTRIBUTE_UNUSED;
int *invalid ATTRIBUTE_UNUSED; int *invalid ATTRIBUTE_UNUSED;
{ {
long addr; long addr;
@ -1626,11 +1626,11 @@ extract_reladdr (insn, operand, mods, opval, invalid)
/* extract the flags bits from a j or jl long immediate. */ /* extract the flags bits from a j or jl long immediate. */
static long static long
extract_jumpflags(insn, operand, mods, opval, invalid) extract_jumpflags(insn, operand, mods, opval, invalid)
arc_insn *insn; arc_insn *insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value **opval ATTRIBUTE_UNUSED; const struct arc_operand_value **opval ATTRIBUTE_UNUSED;
int *invalid; int *invalid;
{ {
if (!flag_p || !limm_p) if (!flag_p || !limm_p)
*invalid = 1; *invalid = 1;
@ -1642,11 +1642,11 @@ extract_jumpflags(insn, operand, mods, opval, invalid)
static long static long
extract_st_offset (insn, operand, mods, opval, invalid) extract_st_offset (insn, operand, mods, opval, invalid)
arc_insn *insn; arc_insn *insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value **opval ATTRIBUTE_UNUSED; const struct arc_operand_value **opval ATTRIBUTE_UNUSED;
int *invalid; int *invalid;
{ {
int value = 0; int value = 0;
@ -1669,11 +1669,11 @@ extract_st_offset (insn, operand, mods, opval, invalid)
static long static long
extract_ld_offset (insn, operand, mods, opval, invalid) extract_ld_offset (insn, operand, mods, opval, invalid)
arc_insn *insn; arc_insn *insn;
const struct arc_operand *operand; const struct arc_operand *operand;
int mods; int mods;
const struct arc_operand_value **opval; const struct arc_operand_value **opval;
int *invalid; int *invalid;
{ {
int test = insn[0] & I(-1); int test = insn[0] & I(-1);
int value; int value;
@ -1698,11 +1698,11 @@ extract_ld_offset (insn, operand, mods, opval, invalid)
static long static long
extract_unopmacro (insn, operand, mods, opval, invalid) extract_unopmacro (insn, operand, mods, opval, invalid)
arc_insn *insn; arc_insn *insn;
const struct arc_operand *operand ATTRIBUTE_UNUSED; const struct arc_operand *operand ATTRIBUTE_UNUSED;
int mods ATTRIBUTE_UNUSED; int mods ATTRIBUTE_UNUSED;
const struct arc_operand_value **opval ATTRIBUTE_UNUSED; const struct arc_operand_value **opval ATTRIBUTE_UNUSED;
int *invalid; int *invalid;
{ {
/* This misses the case where B == ARC_REG_SHIMM_UPDATE && /* This misses the case where B == ARC_REG_SHIMM_UPDATE &&
C == ARC_REG_SHIMM (or vice versa). No big deal. Those insns will get C == ARC_REG_SHIMM (or vice versa). No big deal. Those insns will get
@ -1719,8 +1719,8 @@ extract_unopmacro (insn, operand, mods, opval, invalid)
const struct arc_operand_value * const struct arc_operand_value *
arc_opcode_lookup_suffix (type, value) arc_opcode_lookup_suffix (type, value)
const struct arc_operand *type; const struct arc_operand *type;
int value; int value;
{ {
register const struct arc_operand_value *v,*end; register const struct arc_operand_value *v,*end;
struct arc_ext_operand_value *ext_oper = arc_ext_operands; struct arc_ext_operand_value *ext_oper = arc_ext_operands;
@ -1744,8 +1744,8 @@ arc_opcode_lookup_suffix (type, value)
static const struct arc_operand_value * static const struct arc_operand_value *
lookup_register (type, regno) lookup_register (type, regno)
int type; int type;
long regno; long regno;
{ {
register const struct arc_operand_value *r,*end; register const struct arc_operand_value *r,*end;
struct arc_ext_operand_value *ext_oper = arc_ext_operands; struct arc_ext_operand_value *ext_oper = arc_ext_operands;
@ -1771,14 +1771,14 @@ lookup_register (type, regno)
int int
arc_insn_is_j(insn) arc_insn_is_j(insn)
arc_insn insn; arc_insn insn;
{ {
return (insn & (I(-1))) == I(0x7); return (insn & (I(-1))) == I(0x7);
} }
int int
arc_insn_not_jl(insn) arc_insn_not_jl(insn)
arc_insn insn; arc_insn insn;
{ {
return ((insn & (I(-1)|A(-1)|C(-1)|R(-1,7,1)|R(-1,9,1))) return ((insn & (I(-1)|A(-1)|C(-1)|R(-1,7,1)|R(-1,9,1)))
!= (I(0x7) | R(-1,9,1))); != (I(0x7) | R(-1,9,1)));
@ -1804,7 +1804,7 @@ arc_operand_type(int opertype)
struct arc_operand_value * struct arc_operand_value *
get_ext_suffix(s) get_ext_suffix(s)
char *s; char *s;
{ {
struct arc_ext_operand_value *suffix = arc_ext_operands; struct arc_ext_operand_value *suffix = arc_ext_operands;