[ARM] PR 68143 Properly update memory offsets when expanding setmem
commit17b3f68242b6e8f9a9e336db9d810729c2e2f9c0
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Nov 2015 13:20:08 +0000 (17 13:20 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Nov 2015 13:20:08 +0000 (17 13:20 +0000)
tree24a71f5e90b257aaa72fb3c4bdf1b114fc391694
parent9f664e082fbd052ca3ac1a678d5e5cac2605191b
[ARM] PR 68143 Properly update memory offsets when expanding setmem

PR target/68143
* config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
offset from dstbase and use it appropriately in
adjust_automodify_address.
(arm_block_set_aligned_vect): Likewise.

* gcc.c-torture/execute/pr68143_1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230462 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr68143_1.c [new file with mode: 0644]