[AArch64] Expand DImode constant stores to two SImode stores when profitable
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 17 Nov 2016 14:25:30 +0000 (14:25 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 17 Nov 2016 14:25:30 +0000 (14:25 +0000)
commit141a3ccff1f53ca8a86453fbe4eaa1bc6b64d920
tree70048b62883e572701b22d82dc04e95b4620e50b
parent54e63f002885fb595f17f39998e93bb9fc23a49d
[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.

From-SVN: r242551
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]