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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
pr83965.c
blob
5bf0f9020d0a83f48cc5ec6564d78755654b86d1
1
/* { dg-do compile } */
2
/* { dg-additional-options "-ftrapv" } */
3
4
int
5
mac
(
const short
*
a
,
const short
*
b
,
int
sqr
,
int
*
sum
)
6
{
7
int
i
;
8
int
dotp
= *
sum
;
9
10
for
(
i
=
0
;
i
<
150
;
i
++)
11
{
12
dotp
+=
b
[
i
] *
a
[
i
];
13
sqr
+=
b
[
i
] *
b
[
i
];
14
}
15
16
*
sum
=
dotp
;
17
return
sqr
;
18
}