Commit 144f8315 by Jie Zhang Committed by Jie Zhang

bfin.c (single_move_for_strmov): Renamed to...

	* config/bfin/bfin.c (single_move_for_strmov): Renamed to...
	(single_move_for_movmem): ... this. Also change all uses.
	(bfin_expand_strmov): Renamed to...
	(bfin_expand_movmem): ... this. Also change all uses.
	* config/bfin/bfin.md (movstrsi): Renamed to...
	(movstrsi): ...this.

From-SVN: r112535
parent ae25dbda
2006-03-30 Jie Zhang <jie.zhang@analog.com>
* config/bfin/bfin.c (single_move_for_strmov): Renamed to...
(single_move_for_movmem): ... this. Also change all uses.
(bfin_expand_strmov): Renamed to...
(bfin_expand_movmem): ... this. Also change all uses.
* config/bfin/bfin.md (movstrsi): Renamed to...
(movstrsi): ...this.
2006-03-30 Paolo Bonzini <bonzini@gnu.org>
PR tree-optimization/26830
......
......@@ -2427,7 +2427,7 @@ output_pop_multiple (rtx insn, rtx *operands)
/* Adjust DST and SRC by OFFSET bytes, and generate one move in mode MODE. */
static void
single_move_for_strmov (rtx dst, rtx src, enum machine_mode mode, HOST_WIDE_INT offset)
single_move_for_movmem (rtx dst, rtx src, enum machine_mode mode, HOST_WIDE_INT offset)
{
rtx scratch = gen_reg_rtx (mode);
rtx srcmem, dstmem;
......@@ -2443,7 +2443,7 @@ single_move_for_strmov (rtx dst, rtx src, enum machine_mode mode, HOST_WIDE_INT
back on a different method. */
bool
bfin_expand_strmov (rtx dst, rtx src, rtx count_exp, rtx align_exp)
bfin_expand_movmem (rtx dst, rtx src, rtx count_exp, rtx align_exp)
{
rtx srcreg, destreg, countreg;
HOST_WIDE_INT align = 0;
......@@ -2488,7 +2488,7 @@ bfin_expand_strmov (rtx dst, rtx src, rtx count_exp, rtx align_exp)
{
if ((count & ~3) == 4)
{
single_move_for_strmov (dst, src, SImode, offset);
single_move_for_movmem (dst, src, SImode, offset);
offset = 4;
}
else if (count & ~3)
......@@ -2500,7 +2500,7 @@ bfin_expand_strmov (rtx dst, rtx src, rtx count_exp, rtx align_exp)
}
if (count & 2)
{
single_move_for_strmov (dst, src, HImode, offset);
single_move_for_movmem (dst, src, HImode, offset);
offset += 2;
}
}
......@@ -2508,7 +2508,7 @@ bfin_expand_strmov (rtx dst, rtx src, rtx count_exp, rtx align_exp)
{
if ((count & ~1) == 2)
{
single_move_for_strmov (dst, src, HImode, offset);
single_move_for_movmem (dst, src, HImode, offset);
offset = 2;
}
else if (count & ~1)
......@@ -2521,7 +2521,7 @@ bfin_expand_strmov (rtx dst, rtx src, rtx count_exp, rtx align_exp)
}
if (count & 1)
{
single_move_for_strmov (dst, src, QImode, offset);
single_move_for_movmem (dst, src, QImode, offset);
}
return true;
}
......
......@@ -1514,14 +1514,14 @@
[(set_attr "type" "misc")
(set_attr "length" "16")])
(define_expand "movstrsi"
(define_expand "movmemsi"
[(match_operand:BLK 0 "general_operand" "")
(match_operand:BLK 1 "general_operand" "")
(match_operand:SI 2 "const_int_operand" "")
(match_operand:SI 3 "const_int_operand" "")]
""
{
if (bfin_expand_strmov (operands[0], operands[1], operands[2], operands[3]))
if (bfin_expand_movmem (operands[0], operands[1], operands[2], operands[3]))
DONE;
FAIL;
})
......
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