diff options
author | Jie Zhang <jie.zhang@analog.com> | 2006-03-30 14:48:05 +0000 |
---|---|---|
committer | Jie Zhang <jiez@gcc.gnu.org> | 2006-03-30 14:48:05 +0000 |
commit | 144f83156707c5a7ef6bda84264274f525572209 (patch) | |
tree | 11c14bd709917bde47c4e2f37b242ba5a2d9cbbc /gcc | |
parent | ae25dbda33696aa6a15840ec31b48f84d6bf8be0 (diff) | |
download | gcc-144f83156707c5a7ef6bda84264274f525572209.zip gcc-144f83156707c5a7ef6bda84264274f525572209.tar.gz gcc-144f83156707c5a7ef6bda84264274f525572209.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.c | 12 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.md | 4 |
3 files changed, 17 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c96801..a23dd7b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 6929640..dfaa567 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -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; } diff --git a/gcc/config/bfin/bfin.md b/gcc/config/bfin/bfin.md index 221e0ce..fdd1363 100644 --- a/gcc/config/bfin/bfin.md +++ b/gcc/config/bfin/bfin.md @@ -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; }) |