[ARM] PR 68143 Properly update memory offsets when expanding setmem
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 17 Nov 2015 13:20:08 +0000 (13:20 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 17 Nov 2015 13:20:08 +0000 (13:20 +0000)
commitf17b0ebc79a09122a3ed86ded43c3c0e68640314
tree24a71f5e90b257aaa72fb3c4bdf1b114fc391694
parent8502951bceff3f0679f79182c0285dcc54dfa717
[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.

From-SVN: r230462
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr68143_1.c [new file with mode: 0644]