diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2012-01-02 13:56:36 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2012-01-02 13:56:36 +0000 |
commit | 0d8f5d625faf1a8a063bb849770665e743110aaf (patch) | |
tree | 39f96b35ec1e219ff6c91560fb53beab4a2ffdcc /gcc/expr.h | |
parent | 9f929ce61f62c3dd84bb773b056652cadeebdec5 (diff) | |
download | gcc-0d8f5d625faf1a8a063bb849770665e743110aaf.zip gcc-0d8f5d625faf1a8a063bb849770665e743110aaf.tar.gz gcc-0d8f5d625faf1a8a063bb849770665e743110aaf.tar.bz2 |
expr.h (move_by_pieces_ninsns): Declare.
gcc/
* expr.h (move_by_pieces_ninsns): Declare.
* expr.c (move_by_pieces_ninsns): Make external.
* config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
(mips_store_by_pieces_p): Likewise.
* config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
(STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
* config/mips/mips.c (mips_move_by_pieces_p): New function.
(mips_store_by_pieces_p): Likewise.
gcc/testsuite/
* gcc.dg/memcpy-4.c: Add nomips16 attribute for MIPS targets.
Increase copy to 5 bytes. Look for at least two "mem/s/u"s,
rather than a specific number.
From-SVN: r182801
Diffstat (limited to 'gcc/expr.h')
-rw-r--r-- | gcc/expr.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -367,6 +367,10 @@ extern bool set_storage_via_setmem (rtx, rtx, rtx, unsigned int, succeed. */ extern int can_move_by_pieces (unsigned HOST_WIDE_INT, unsigned int); +extern unsigned HOST_WIDE_INT move_by_pieces_ninsns (unsigned HOST_WIDE_INT, + unsigned int, + unsigned int); + /* Return nonzero if it is desirable to store LEN bytes generated by CONSTFUN with several move instructions by store_by_pieces function. CONSTFUNDATA is a pointer which will be passed as argument |