[AArch64] Expand DImode constant stores to two SImode stores when profitable
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / store_repeating_constant_2.c
blobc421277989adcf446ad8a7b3ab9060602c03a7ea
1 /* { dg-do compile } */
2 /* { dg-options "-Os" } */
4 /* Check that for -Os we synthesize only the bottom half and then
5 store it twice with an STP rather than synthesizing it twice in each
6 half of an X-reg. */
8 void
9 foo (unsigned long long *a)
11 a[0] = 0xc0da0000c0daULL;
14 /* { dg-final { scan-assembler-times "mov\\tw.*" 1 } } */
15 /* { dg-final { scan-assembler-times "stp\tw\[0-9\]+, w\[0-9\]+.*" 1 } } */