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
/
vect-early-break_104-pr113373.c
blob
1601aafb3e6f5e99d0e2bc96b10e062ad281bdeb
1
/* { dg-do compile } */
2
/* { dg-add-options vect_early_break } */
3
/* { dg-require-effective-target vect_early_break } */
4
5
struct
asCArray
{
6
unsigned
*
array
;
7
int
length
;
8
};
9
unsigned
asCReaderTranslateFunction
(
struct
asCArray b
,
unsigned
t
)
10
{
11
int
size
=
0
;
12
for
(
unsigned
num
;
num
<
t
;
num
++)
13
{
14
if
(
num
>=
b
.
length
)
15
__builtin_abort
();
16
size
+=
b
.
array
[
num
];
17
}
18
return
size
;
19
}