AArch64: Reassociate CONST in address expressions
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / pr112573.c
blobbe04c0ca86ad9f33975a85f497549955d6d1236d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-section-anchors" } */
4 char a[100];
6 void f1 (int x, int y)
8 *((a + y) + 3) = x;
9 *((a + y) + 2) = x;
10 *((a + y) + 1) = x;
11 *((a + y) + 0) = x;
14 /* { dg-final { scan-assembler-times "strb" 4 } } */
15 /* { dg-final { scan-assembler-times "adrp" 1 } } */