[AArch64] Expand DImode constant stores to two SImode stores when profitable
commit9794389d5d5188a140471d3b90df62b2b5b5a308
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Nov 2016 14:25:30 +0000 (17 14:25 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Nov 2016 14:25:30 +0000 (17 14:25 +0000)
tree70048b62883e572701b22d82dc04e95b4620e50b
parentb0c413f240ec2431c4a93d86f87e66a57bc5d51e
[AArch64] Expand DImode constant stores to two SImode stores when profitable

* config/aarch64/aarch64.md (mov<mode>): Call
aarch64_split_dimode_const_store on DImode constant stores.
* config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
New prototype.
* config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
function.

* gcc.target/aarch64/store_repeating_constant_1.c: New test.
* gcc.target/aarch64/store_repeating_constant_2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242551 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64-protos.h
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/store_repeating_constant_1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/store_repeating_constant_2.c [new file with mode: 0644]