[PR100518] store by mult pieces: keep addr in Pmode
authorAlexandre Oliva <oliva@adacore.com>
Wed, 15 Dec 2021 05:22:34 +0000 (02:22 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 15 Dec 2021 05:22:34 +0000 (02:22 -0300)
commit71cc9b8c39148d19a8043b74ca8b6b4e8b8072ca
treeeae49da0f9010557e0fb24287d96ac2441c4df29
parentc95a9f1ee7ebd461cbced455271a993bae3a42b6
[PR100518] store by mult pieces: keep addr in Pmode

The conversion of a MEM address to ptr_mode in
try_store_by_multiple_pieces was misguided: copy_addr_to_reg expects
Pmode for addresses.

for  gcc/ChangeLog

PR target/100518
* builtins.c (try_store_by_multiple_pieces): Drop address
conversion to ptr_mode.

for  gcc/testsuite/ChangeLog

PR target/100518
* gcc.target/aarch64/pr100518.c: New.
gcc/builtins.c
gcc/testsuite/gcc.target/aarch64/pr100518.c [new file with mode: 0644]