Commit 45731f37 by Oleg Endo

sh-mem.cc: Use tabs instead of spaces.

	* config/sh/sh-mem.cc: Use tabs instead of spaces.
	(prob_unlikely, prob_likely): Make variables const.

From-SVN: r210037
parent c61dfa63
2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
* config/sh/sh-mem.cc: Use tabs instead of spaces.
(prob_unlikely, prob_likely): Make variables const.
2014-05-03 Denis Chertykov <chertykov@gmail.com> 2014-05-03 Denis Chertykov <chertykov@gmail.com>
* config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA. * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
......
...@@ -179,8 +179,8 @@ expand_block_move (rtx *operands) ...@@ -179,8 +179,8 @@ expand_block_move (rtx *operands)
return false; return false;
} }
static int prob_unlikely = REG_BR_PROB_BASE / 10; static const int prob_unlikely = REG_BR_PROB_BASE / 10;
static int prob_likely = REG_BR_PROB_BASE / 4; static const int prob_likely = REG_BR_PROB_BASE / 4;
/* Emit code to perform a strcmp. /* Emit code to perform a strcmp.
...@@ -226,7 +226,7 @@ sh_expand_cmpstr (rtx *operands) ...@@ -226,7 +226,7 @@ sh_expand_cmpstr (rtx *operands)
emit_move_insn (tmp3, addr2); emit_move_insn (tmp3, addr2);
emit_move_insn (s2_addr, plus_constant (Pmode, s2_addr, 4)); emit_move_insn (s2_addr, plus_constant (Pmode, s2_addr, 4));
/*start long loop. */ /* start long loop. */
emit_label (L_loop_long); emit_label (L_loop_long);
emit_move_insn (tmp2, tmp3); emit_move_insn (tmp2, tmp3);
...@@ -367,7 +367,7 @@ sh_expand_cmpnstr (rtx *operands) ...@@ -367,7 +367,7 @@ sh_expand_cmpnstr (rtx *operands)
/* word count. Do we have iterations ? */ /* word count. Do we have iterations ? */
emit_insn (gen_lshrsi3 (lenw, len, GEN_INT (2))); emit_insn (gen_lshrsi3 (lenw, len, GEN_INT (2)));
/*start long loop. */ /* start long loop. */
emit_label (L_loop_long); emit_label (L_loop_long);
/* tmp2 is aligned, OK to load. */ /* tmp2 is aligned, OK to load. */
...@@ -405,7 +405,7 @@ sh_expand_cmpnstr (rtx *operands) ...@@ -405,7 +405,7 @@ sh_expand_cmpnstr (rtx *operands)
int sbytes = bytes % 4; int sbytes = bytes % 4;
/* end loop. Reached max iterations. */ /* end loop. Reached max iterations. */
if (! sbytes) if (sbytes == 0)
{ {
jump = emit_jump_insn (gen_jump_compact (L_return)); jump = emit_jump_insn (gen_jump_compact (L_return));
emit_barrier_after (jump); emit_barrier_after (jump);
...@@ -529,7 +529,7 @@ sh_expand_cmpnstr (rtx *operands) ...@@ -529,7 +529,7 @@ sh_expand_cmpnstr (rtx *operands)
return true; return true;
} }
/* Emit code to perform a strlen /* Emit code to perform a strlen.
OPERANDS[0] is the destination. OPERANDS[0] is the destination.
OPERANDS[1] is the string. OPERANDS[1] is the string.
...@@ -635,7 +635,7 @@ sh_expand_strlen (rtx *operands) ...@@ -635,7 +635,7 @@ sh_expand_strlen (rtx *operands)
return true; return true;
} }
/* Emit code to perform a memset /* Emit code to perform a memset.
OPERANDS[0] is the destination. OPERANDS[0] is the destination.
OPERANDS[1] is the size; OPERANDS[1] is the size;
...@@ -652,13 +652,12 @@ sh_expand_setmem (rtx *operands) ...@@ -652,13 +652,12 @@ sh_expand_setmem (rtx *operands)
rtx dest_addr = copy_addr_to_reg (XEXP (dest, 0)); rtx dest_addr = copy_addr_to_reg (XEXP (dest, 0));
rtx val = force_reg (SImode, operands[2]); rtx val = force_reg (SImode, operands[2]);
int align = INTVAL (operands[3]); int align = INTVAL (operands[3]);
int count = 0;
rtx len = force_reg (SImode, operands[1]); rtx len = force_reg (SImode, operands[1]);
if (! CONST_INT_P (operands[1])) if (! CONST_INT_P (operands[1]))
return; return;
count = INTVAL (operands[1]); int count = INTVAL (operands[1]);
if (CONST_INT_P (operands[2]) if (CONST_INT_P (operands[2])
&& (INTVAL (operands[2]) == 0 || INTVAL (operands[2]) == -1) && count > 8) && (INTVAL (operands[2]) == 0 || INTVAL (operands[2]) == -1) && count > 8)
...@@ -734,6 +733,4 @@ sh_expand_setmem (rtx *operands) ...@@ -734,6 +733,4 @@ sh_expand_setmem (rtx *operands)
add_int_reg_note (jump, REG_BR_PROB, prob_likely); add_int_reg_note (jump, REG_BR_PROB, prob_likely);
emit_label (L_return); emit_label (L_return);
return;
} }
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