OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR debug/46771
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr46771.c
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
}