bfin.c (single_move_for_strmov): Renamed to...
authorJie Zhang <jie.zhang@analog.com>
Thu, 30 Mar 2006 14:48:05 +0000 (14:48 +0000)
committerJie Zhang <jiez@gcc.gnu.org>
Thu, 30 Mar 2006 14:48:05 +0000 (14:48 +0000)
* 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

gcc/ChangeLog
gcc/config/bfin/bfin.c
gcc/config/bfin/bfin.md

index 1c968013ddfe989d01623e12859fa4d53d0b01e9..a23dd7bb997fa6265704a4489a54b403e41b1f33 100644 (file)
@@ -1,3 +1,12 @@
+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
index 692964083b280f9c01487fc55778d4b64374400e..dfaa567d65bad54de63a6638a4e37fed1273b537 100644 (file)
@@ -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;
     }
index 221e0ceed82ff5b668cb36f1f6d5aea44818c509..fdd1363622bf3c4f6aa7c4aba4662a96edbb0ca5 100644 (file)
   [(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;
 })