+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
/* 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;
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;
{
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)
}
if (count & 2)
{
- single_move_for_strmov (dst, src, HImode, offset);
+ single_move_for_movmem (dst, src, HImode, offset);
offset += 2;
}
}
{
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)
}
if (count & 1)
{
- single_move_for_strmov (dst, src, QImode, offset);
+ single_move_for_movmem (dst, src, QImode, offset);
}
return true;
}
[(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;
})