[ARM] length pop* pattern in epilogue correctly
authorJiong Wang <jiong.wang@arm.com>
Sat, 11 Jun 2016 20:42:26 +0000 (20:42 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Sat, 11 Jun 2016 20:42:26 +0000 (20:42 +0000)
commit5775d58c066fe26e8d7de607a725743705cfd08d
tree13f9f0b62c517609fd6e7c120f28c37f6e02ec48
parenta0d66002539dcc75618868d902a44e11059b286a
[ARM] length pop* pattern in epilogue correctly

PR target/71061
* config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
* config/arm/arm.c (arm_attr_length_pop_multi): New function to return
length for pop patterns.
(arm_attr_length_push_multi): Update comments.
* config/arm/arm.md (*load_multiple_with_writeback): Set "length"
attribute.
(*pop_multiple_with_writeback_and_return): Likewise.
(*pop_multiple_with_return): Likewise.

From-SVN: r237331
gcc/ChangeLog
gcc/config/arm/arm-protos.h
gcc/config/arm/arm.c
gcc/config/arm/arm.md