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
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr46771.c
blob
b44dfd466ab66629c6ba6a71739edf5d28777310
1
/* PR debug/46771 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -ftree-vectorize -fcompare-debug" } */
4
5
unsigned char
v
[
1600
];
6
7
unsigned char
8
foo
(
unsigned char
x
)
9
{
10
int
i
;
11
unsigned char
a
=
x
;
12
unsigned char
b
=
x
;
13
for
(
i
=
0
;
i
<
1600
;
i
++)
14
a
=
a
<
v
[
i
] ?
v
[
i
] :
a
;
15
for
(
i
=
0
;
i
<
1600
;
i
++)
16
b
=
b
>
v
[
i
] ?
v
[
i
] :
b
;
17
return
a
-
b
;
18
}