This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[bfin] Rename movstrsi to movmemsi
- From: "Jie Zhang" <jzhang918 at gmail dot com>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 30 Mar 2006 16:32:00 +0800
- Subject: [bfin] Rename movstrsi to movmemsi
GCC does not use movstrsi pattern name any more. This patch renames
movstrsi to movmemsi for bfin port. Is it OK?
Jie
* 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.
Index: config/bfin/bfin.c
===================================================================
--- config/bfin/bfin.c (revision 112284)
+++ config/bfin/bfin.c (working copy)
@@ -2427,7 +2427,7 @@
/* 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 @@
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 @@
{
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 @@
}
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 @@
{
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 @@
}
if (count & 1)
{
- single_move_for_strmov (dst, src, QImode, offset);
+ single_move_for_movmem (dst, src, QImode, offset);
}
return true;
}
Index: config/bfin/bfin.md
===================================================================
--- config/bfin/bfin.md (revision 112284)
+++ config/bfin/bfin.md (working copy)
@@ -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;
})