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
PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
pr70138-2.c
blob
01c5dd85014e66fdfccaf9aca77ce6d663279d81
1
#include
"tree-vect.h"
2
3
double
u
[
33
];
4
5
__attribute__
((
noinline
,
noclone
))
static void
6
foo
(
int
*
x
)
7
{
8
double
c
=
0.0
;
9
int
a
,
b
;
10
for
(
a
=
0
;
a
<
33
;
a
++)
11
{
12
for
(
b
=
0
;
b
<
33
;
b
++)
13
c
=
c
+
u
[
a
];
14
u
[
a
] *=
2.0
;
15
}
16
*
x
=
c
;
17
}
18
19
int
20
main
()
21
{
22
int
d
,
e
;
23
check_vect
();
24
for
(
d
=
0
;
d
<
33
;
d
++)
25
{
26
u
[
d
] = (
d
+
2
);
27
__asm__
volatile
(
""
: : :
"memory"
);
28
}
29
foo
(&
e
);
30
if
(
e
!=
33
* (
2
+
34
) /
2
*
33
)
31
__builtin_abort
();
32
return
0
;
33
}