Commit 3bbc2af6 by Kazu Hirata Committed by Kazu Hirata

elf.h: Fix comment formatting.

	* config/xtensa/elf.h: Fix comment formatting.
	* config/xtensa/xtensa-protos.h: Likewise.
	* config/xtensa/xtensa.c: Likewise.
	* config/xtensa/xtensa.h: Likewise.

From-SVN: r75018
parent be886286
2003-12-24 Kazu Hirata <kazu@cs.umass.edu> 2003-12-24 Kazu Hirata <kazu@cs.umass.edu>
* config/xtensa/elf.h: Fix comment formatting.
* config/xtensa/xtensa-protos.h: Likewise.
* config/xtensa/xtensa.c: Likewise.
* config/xtensa/xtensa.h: Likewise.
2003-12-24 Kazu Hirata <kazu@cs.umass.edu>
* config/avr/avr.c: Fix comment formatting. * config/avr/avr.c: Fix comment formatting.
* config/avr/avr.md: Likewise. * config/avr/avr.md: Likewise.
......
...@@ -600,7 +600,7 @@ move_operand (rtx op, enum machine_mode mode) ...@@ -600,7 +600,7 @@ move_operand (rtx op, enum machine_mode mode)
case SImode: case SImode:
if (TARGET_CONST16) if (TARGET_CONST16)
return CONSTANT_P (op); return CONSTANT_P (op);
/* fall through */ /* Fall through. */
case HImode: case HImode:
case QImode: case QImode:
...@@ -652,12 +652,12 @@ constantpool_address_p (rtx addr) ...@@ -652,12 +652,12 @@ constantpool_address_p (rtx addr)
{ {
rtx offset; rtx offset;
/* only handle (PLUS (SYM, OFFSET)) form */ /* Only handle (PLUS (SYM, OFFSET)) form. */
addr = XEXP (addr, 0); addr = XEXP (addr, 0);
if (GET_CODE (addr) != PLUS) if (GET_CODE (addr) != PLUS)
return FALSE; return FALSE;
/* make sure the address is word aligned */ /* Make sure the address is word aligned. */
offset = XEXP (addr, 1); offset = XEXP (addr, 1);
if ((GET_CODE (offset) != CONST_INT) if ((GET_CODE (offset) != CONST_INT)
|| ((INTVAL (offset) & 3) != 0)) || ((INTVAL (offset) & 3) != 0))
...@@ -728,7 +728,7 @@ xtensa_extend_reg (rtx dst, rtx src) ...@@ -728,7 +728,7 @@ xtensa_extend_reg (rtx dst, rtx src)
rtx temp = gen_reg_rtx (SImode); rtx temp = gen_reg_rtx (SImode);
rtx shift = GEN_INT (BITS_PER_WORD - GET_MODE_BITSIZE (GET_MODE (src))); rtx shift = GEN_INT (BITS_PER_WORD - GET_MODE_BITSIZE (GET_MODE (src)));
/* generate paradoxical subregs as needed so that the modes match */ /* Generate paradoxical subregs as needed so that the modes match. */
src = simplify_gen_subreg (SImode, src, GET_MODE (src), 0); src = simplify_gen_subreg (SImode, src, GET_MODE (src), 0);
dst = simplify_gen_subreg (SImode, dst, GET_MODE (dst), 0); dst = simplify_gen_subreg (SImode, dst, GET_MODE (dst), 0);
...@@ -1080,14 +1080,14 @@ gen_conditional_move (rtx cmp) ...@@ -1080,14 +1080,14 @@ gen_conditional_move (rtx cmp)
if (boolean_operator (cmp, VOIDmode)) if (boolean_operator (cmp, VOIDmode))
{ {
/* swap the operands to make const0 second */ /* Swap the operands to make const0 second. */
if (op0 == const0_rtx) if (op0 == const0_rtx)
{ {
op0 = op1; op0 = op1;
op1 = const0_rtx; op1 = const0_rtx;
} }
/* if not comparing against zero, emit a comparison (subtract) */ /* If not comparing against zero, emit a comparison (subtract). */
if (op1 != const0_rtx) if (op1 != const0_rtx)
{ {
op0 = expand_binop (SImode, sub_optab, op0, op1, op0 = expand_binop (SImode, sub_optab, op0, op1,
...@@ -1097,7 +1097,7 @@ gen_conditional_move (rtx cmp) ...@@ -1097,7 +1097,7 @@ gen_conditional_move (rtx cmp)
} }
else if (branch_operator (cmp, VOIDmode)) else if (branch_operator (cmp, VOIDmode))
{ {
/* swap the operands to make const0 second */ /* Swap the operands to make const0 second. */
if (op0 == const0_rtx) if (op0 == const0_rtx)
{ {
op0 = op1; op0 = op1;
...@@ -1379,7 +1379,7 @@ xtensa_expand_block_move (rtx *operands) ...@@ -1379,7 +1379,7 @@ xtensa_expand_block_move (rtx *operands)
int align = XINT (operands[3], 0); int align = XINT (operands[3], 0);
int num_pieces, move_ratio; int num_pieces, move_ratio;
/* If this is not a fixed size move, just call memcpy */ /* If this is not a fixed size move, just call memcpy. */
if (!optimize || (GET_CODE (operands[2]) != CONST_INT)) if (!optimize || (GET_CODE (operands[2]) != CONST_INT))
return 0; return 0;
...@@ -1390,15 +1390,15 @@ xtensa_expand_block_move (rtx *operands) ...@@ -1390,15 +1390,15 @@ xtensa_expand_block_move (rtx *operands)
if (align > MOVE_MAX) if (align > MOVE_MAX)
align = MOVE_MAX; align = MOVE_MAX;
/* decide whether to expand inline based on the optimization level */ /* Decide whether to expand inline based on the optimization level. */
move_ratio = 4; move_ratio = 4;
if (optimize > 2) if (optimize > 2)
move_ratio = LARGEST_MOVE_RATIO; move_ratio = LARGEST_MOVE_RATIO;
num_pieces = (bytes / align) + (bytes % align); /* close enough anyway */ num_pieces = (bytes / align) + (bytes % align); /* Close enough anyway. */
if (num_pieces >= move_ratio) if (num_pieces >= move_ratio)
return 0; return 0;
/* make sure the memory addresses are valid */ /* Make sure the memory addresses are valid. */
operands[0] = validize_mem (dest); operands[0] = validize_mem (dest);
operands[1] = validize_mem (src); operands[1] = validize_mem (src);
...@@ -1411,7 +1411,7 @@ xtensa_expand_block_move (rtx *operands) ...@@ -1411,7 +1411,7 @@ xtensa_expand_block_move (rtx *operands)
/* Emit a sequence of instructions to implement a block move, trying /* Emit a sequence of instructions to implement a block move, trying
to hide load delay slots as much as possible. Load N values into to hide load delay slots as much as possible. Load N values into
temporary registers, store those N values, and repeat until the temporary registers, store those N values, and repeat until the
complete block has been moved. N=delay_slots+1 */ complete block has been moved. N=delay_slots+1. */
struct meminsnbuf struct meminsnbuf
{ {
...@@ -1467,7 +1467,7 @@ xtensa_emit_block_move (rtx *operands, rtx *tmpregs, int delay_slots) ...@@ -1467,7 +1467,7 @@ xtensa_emit_block_move (rtx *operands, rtx *tmpregs, int delay_slots)
if (bytes < item_size) if (bytes < item_size)
{ {
/* find a smaller item_size which we can load & store */ /* Find a smaller item_size which we can load & store. */
item_size = bytes; item_size = bytes;
mode = xtensa_find_mode_for_size (item_size); mode = xtensa_find_mode_for_size (item_size);
item_size = GET_MODE_SIZE (mode); item_size = GET_MODE_SIZE (mode);
...@@ -1475,7 +1475,7 @@ xtensa_emit_block_move (rtx *operands, rtx *tmpregs, int delay_slots) ...@@ -1475,7 +1475,7 @@ xtensa_emit_block_move (rtx *operands, rtx *tmpregs, int delay_slots)
stname = xtensa_st_opcodes[(int) mode]; stname = xtensa_st_opcodes[(int) mode];
} }
/* record the load instruction opcode and operands */ /* Record the load instruction opcode and operands. */
addr = plus_constant (from_addr, offset); addr = plus_constant (from_addr, offset);
mem = gen_rtx_MEM (mode, addr); mem = gen_rtx_MEM (mode, addr);
if (! memory_address_p (mode, addr)) if (! memory_address_p (mode, addr))
...@@ -1485,7 +1485,7 @@ xtensa_emit_block_move (rtx *operands, rtx *tmpregs, int delay_slots) ...@@ -1485,7 +1485,7 @@ xtensa_emit_block_move (rtx *operands, rtx *tmpregs, int delay_slots)
ldinsns[n].operands[1] = mem; ldinsns[n].operands[1] = mem;
sprintf (ldinsns[n].template, "%s\t%%0, %%1", ldname); sprintf (ldinsns[n].template, "%s\t%%0, %%1", ldname);
/* record the store instruction opcode and operands */ /* Record the store instruction opcode and operands. */
addr = plus_constant (to_addr, offset); addr = plus_constant (to_addr, offset);
mem = gen_rtx_MEM (mode, addr); mem = gen_rtx_MEM (mode, addr);
if (! memory_address_p (mode, addr)) if (! memory_address_p (mode, addr))
...@@ -1499,7 +1499,7 @@ xtensa_emit_block_move (rtx *operands, rtx *tmpregs, int delay_slots) ...@@ -1499,7 +1499,7 @@ xtensa_emit_block_move (rtx *operands, rtx *tmpregs, int delay_slots)
bytes -= item_size; bytes -= item_size;
} }
/* now output the loads followed by the stores */ /* Now output the loads followed by the stores. */
for (n = 0; n < chunk_size; n++) for (n = 0; n < chunk_size; n++)
output_asm_insn (ldinsns[n].template, ldinsns[n].operands); output_asm_insn (ldinsns[n].template, ldinsns[n].operands);
for (n = 0; n < chunk_size; n++) for (n = 0; n < chunk_size; n++)
...@@ -1517,7 +1517,7 @@ xtensa_find_mode_for_size (unsigned item_size) ...@@ -1517,7 +1517,7 @@ xtensa_find_mode_for_size (unsigned item_size)
{ {
mode = VOIDmode; mode = VOIDmode;
/* find mode closest to but not bigger than item_size */ /* Find mode closest to but not bigger than item_size. */
for (tmode = GET_CLASS_NARROWEST_MODE (MODE_INT); for (tmode = GET_CLASS_NARROWEST_MODE (MODE_INT);
tmode != VOIDmode; tmode = GET_MODE_WIDER_MODE (tmode)) tmode != VOIDmode; tmode = GET_MODE_WIDER_MODE (tmode))
if (GET_MODE_SIZE (tmode) <= item_size) if (GET_MODE_SIZE (tmode) <= item_size)
...@@ -1531,7 +1531,7 @@ xtensa_find_mode_for_size (unsigned item_size) ...@@ -1531,7 +1531,7 @@ xtensa_find_mode_for_size (unsigned item_size)
&& xtensa_st_opcodes[(int) mode]) && xtensa_st_opcodes[(int) mode])
break; break;
/* cannot load & store this mode; try something smaller */ /* Cannot load & store this mode; try something smaller. */
item_size -= 1; item_size -= 1;
} }
...@@ -1545,8 +1545,8 @@ xtensa_expand_nonlocal_goto (rtx *operands) ...@@ -1545,8 +1545,8 @@ xtensa_expand_nonlocal_goto (rtx *operands)
rtx goto_handler = operands[1]; rtx goto_handler = operands[1];
rtx containing_fp = operands[3]; rtx containing_fp = operands[3];
/* generate a call to "__xtensa_nonlocal_goto" (in libgcc); the code /* Generate a call to "__xtensa_nonlocal_goto" (in libgcc); the code
is too big to generate in-line */ is too big to generate in-line. */
if (GET_CODE (containing_fp) != REG) if (GET_CODE (containing_fp) != REG)
containing_fp = force_reg (Pmode, containing_fp); containing_fp = force_reg (Pmode, containing_fp);
...@@ -1789,7 +1789,7 @@ override_options (void) ...@@ -1789,7 +1789,7 @@ override_options (void)
if (!TARGET_BOOLEANS && TARGET_HARD_FLOAT) if (!TARGET_BOOLEANS && TARGET_HARD_FLOAT)
error ("boolean registers required for the floating-point option"); error ("boolean registers required for the floating-point option");
/* set up the tables of ld/st opcode names for block moves */ /* Set up the tables of ld/st opcode names for block moves. */
xtensa_ld_opcodes[(int) SImode] = "l32i"; xtensa_ld_opcodes[(int) SImode] = "l32i";
xtensa_ld_opcodes[(int) HImode] = "l16ui"; xtensa_ld_opcodes[(int) HImode] = "l16ui";
xtensa_ld_opcodes[(int) QImode] = "l8ui"; xtensa_ld_opcodes[(int) QImode] = "l8ui";
...@@ -2366,7 +2366,7 @@ xtensa_builtin_saveregs (void) ...@@ -2366,7 +2366,7 @@ xtensa_builtin_saveregs (void)
if (gp_left == 0) if (gp_left == 0)
return const0_rtx; return const0_rtx;
/* allocate the general-purpose register space */ /* Allocate the general-purpose register space. */
gp_regs = assign_stack_local gp_regs = assign_stack_local
(BLKmode, MAX_ARGS_IN_REGISTERS * UNITS_PER_WORD, -1); (BLKmode, MAX_ARGS_IN_REGISTERS * UNITS_PER_WORD, -1);
set_mem_alias_set (gp_regs, get_varargs_alias_set ()); set_mem_alias_set (gp_regs, get_varargs_alias_set ());
...@@ -2662,8 +2662,8 @@ order_regs_for_local_alloc (void) ...@@ -2662,8 +2662,8 @@ order_regs_for_local_alloc (void)
int i, num_arg_regs; int i, num_arg_regs;
int nxt = 0; int nxt = 0;
/* use the AR registers in increasing order (skipping a0 and a1) /* Use the AR registers in increasing order (skipping a0 and a1)
but save the incoming argument registers for a last resort */ but save the incoming argument registers for a last resort. */
num_arg_regs = current_function_args_info.arg_words; num_arg_regs = current_function_args_info.arg_words;
if (num_arg_regs > MAX_ARGS_IN_REGISTERS) if (num_arg_regs > MAX_ARGS_IN_REGISTERS)
num_arg_regs = MAX_ARGS_IN_REGISTERS; num_arg_regs = MAX_ARGS_IN_REGISTERS;
...@@ -2672,11 +2672,11 @@ order_regs_for_local_alloc (void) ...@@ -2672,11 +2672,11 @@ order_regs_for_local_alloc (void)
for (i = 0; i < num_arg_regs; i++) for (i = 0; i < num_arg_regs; i++)
reg_alloc_order[nxt++] = GP_ARG_FIRST + i; reg_alloc_order[nxt++] = GP_ARG_FIRST + i;
/* list the coprocessor registers in order */ /* List the coprocessor registers in order. */
for (i = 0; i < BR_REG_NUM; i++) for (i = 0; i < BR_REG_NUM; i++)
reg_alloc_order[nxt++] = BR_REG_FIRST + i; reg_alloc_order[nxt++] = BR_REG_FIRST + i;
/* list the FP registers in order for now */ /* List the FP registers in order for now. */
for (i = 0; i < 16; i++) for (i = 0; i < 16; i++)
reg_alloc_order[nxt++] = FP_REG_FIRST + i; reg_alloc_order[nxt++] = FP_REG_FIRST + i;
...@@ -2821,7 +2821,7 @@ xtensa_rtx_costs (rtx x, int code, int outer_code, int *total) ...@@ -2821,7 +2821,7 @@ xtensa_rtx_costs (rtx x, int code, int outer_code, int *total)
case LSHIFTRT: case LSHIFTRT:
case ROTATE: case ROTATE:
case ROTATERT: case ROTATERT:
/* no way to tell if X is the 2nd operand so be conservative */ /* No way to tell if X is the 2nd operand so be conservative. */
default: break; default: break;
} }
if (xtensa_simm12b (INTVAL (x))) if (xtensa_simm12b (INTVAL (x)))
...@@ -2948,7 +2948,7 @@ xtensa_rtx_costs (rtx x, int code, int outer_code, int *total) ...@@ -2948,7 +2948,7 @@ xtensa_rtx_costs (rtx x, int code, int outer_code, int *total)
return true; return true;
} }
} }
/* fall through */ /* Fall through. */
case UDIV: case UDIV:
case UMOD: case UMOD:
......
...@@ -334,7 +334,7 @@ extern const char xtensa_leaf_regs[FIRST_PSEUDO_REGISTER]; ...@@ -334,7 +334,7 @@ extern const char xtensa_leaf_regs[FIRST_PSEUDO_REGISTER];
defined if LEAF_REGISTERS is defined. */ defined if LEAF_REGISTERS is defined. */
#define LEAF_REG_REMAP(REGNO) (REGNO) #define LEAF_REG_REMAP(REGNO) (REGNO)
/* this must be declared if LEAF_REGISTERS is set */ /* This must be declared if LEAF_REGISTERS is set. */
extern int leaf_function; extern int leaf_function;
/* Internal macros to classify a register number. */ /* Internal macros to classify a register number. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment