* config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
commit74f1fddfec3170d1495e0bcba52f6fb871a00317
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 May 2010 22:46:38 +0000 (5 22:46 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 May 2010 22:46:38 +0000 (5 22:46 +0000)
tree7116c81f4884032702f3d08bb2c3d8dbdec83922
parentf039ec372be08545c595dd57f979af85172f791a
* config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
* config/arm/arm.c (multiple_operation_profitable_p,
compute_offset_order): New static functions.
(load_multiple_sequence, store_multiple_sequence): Use them.
Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
memory offsets, not register numbers.
(emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159089 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/arm.h