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
[NDS32] Add intrinsic functions for TLB operation and data prefech.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr51491-2.c
blob
429ee4e59149c8ea8b92e8f41a7e03110d52f7db
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-ccp1" } */
3
/* { dg-require-effective-target alloca } */
4
5
int
g
(
int
*);
6
7
int
8
f
(
int
n
)
9
{
10
int
tt
=
0
;
11
int
t
=
4
;
12
{
13
int
a
[
t
14
+ (
tt
!=
0
?
6
:
0
)
15
];
16
tt
=
g
(
a
);
17
{
18
int
b
[
n
];
19
tt
+=
g
(
b
);
20
if
(
n
>
20
)
21
tt
+=
148
*
g
(
b
);
22
tt
+=
b
[
0
];
23
}
24
tt
+=
a
[
0
];
25
}
26
{
27
int
a
[
4
];
28
tt
+=
g
(
a
);
29
tt
+=
a
[
0
];
30
}
31
return
tt
;
32
}
33
34
/* { dg-final { scan-tree-dump-times "CLOBBER" 2 "ccp1"} } */