repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
AArch64: Reassociate CONST in address expressions
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
aarch64
/
pr112573.c
blob
be04c0ca86ad9f33975a85f497549955d6d1236d
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-section-anchors" } */
3
4
char
a
[
100
];
5
6
void
f1
(
int
x
,
int
y
)
7
{
8
*((
a
+
y
) +
3
) =
x
;
9
*((
a
+
y
) +
2
) =
x
;
10
*((
a
+
y
) +
1
) =
x
;
11
*((
a
+
y
) +
0
) =
x
;
12
}
13
14
/* { dg-final { scan-assembler-times "strb" 4 } } */
15
/* { dg-final { scan-assembler-times "adrp" 1 } } */