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_106-pr113374.c
blob
e2995322af222f746629f2d3145cac768b6e0d27
1
/* { dg-do compile } */
2
/* { dg-add-options vect_early_break } */
3
4
typedef
__SIZE_TYPE__
size_t
;
5
struct
S
{
unsigned char
*
a
, *
b
; };
6
7
void
8
foo
(
struct
S x
)
9
{
10
for
(
size_t
i
=
x
.
b
-
x
.
a
;
i
>
0
; --
i
)
11
{
12
size_t
t
=
x
.
b
-
x
.
a
;
13
size_t
u
=
i
-
1
;
14
if
(
u
>=
t
)
15
__builtin_abort
();
16
if
(
x
.
a
[
i
-
1
]--)
17
break
;
18
}
19
}