mips.c (mips_expand_block_move): Enable inline memcpy expansion when !ISA_HAS_LWL_LWR.
authorSimon Dardis <simon.dardis@imgtec.com>
Thu, 20 Aug 2015 09:45:33 +0000 (10:45 +0100)
committerSimon Dardis <dardiss@gcc.gnu.org>
Thu, 20 Aug 2015 09:45:33 +0000 (10:45 +0100)
commit58df0b91cbca6814b243256bb7900341b5316d14
tree901959ccb3e8165aa8dda975ea4a4cf70526a026
parent95f25df08f656e693a62c77bed7766e701f883f7
mips.c (mips_expand_block_move): Enable inline memcpy expansion when !ISA_HAS_LWL_LWR.

gcc/

   * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
expansion when !ISA_HAS_LWL_LWR.
(mips_block_move_straight): Update the size of elements copied to
account for alignment when !ISA_HAS_LWL_LWR.
* config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.

gcc/testsuite/

* inline-memcpy-1.c: Test for inline expansion of memcpy.
* inline-memcpy-2.c: Ditto.
* inline-memcpy-3.c: Ditto.
* inline-memcpy-4.c: Ditto.
* inline-memcpy-5.c: Ditto.

From-SVN: r227026
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/inline-memcpy-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/inline-memcpy-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/inline-memcpy-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/inline-memcpy-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/inline-memcpy-5.c [new file with mode: 0644]