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/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
aarch64
/
subsp.c
blob
70d848c59d1f1e4df4314ca012c7a5d9d3b91ebc
1
/* { dg-options "-O" } */
2
3
int
foo
(
void
*);
4
5
int
6
f1
(
int
*
x
,
long
y
)
7
{
8
return
foo
(
__builtin_alloca
(
y
));
9
}
10
11
int
12
f2
(
int
*
x
,
int
y
)
13
{
14
char
a
[
y
+
1
][
16
];
15
return
foo
(
a
);
16
}
17
18
/* { dg-final { scan-assembler "sub\tsp, sp, x\[0-9\]*\n" } } */
19
/* { dg-final { scan-assembler "sub\tsp, sp, x\[0-9\]*, sxtw 4\n" } } */