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
2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr85693.c
blob
214a739fcbd6956b360c5e8e42e57b058b2dd71b
1
/* { dg-do compile }
2
/* { dg-options "-msse2 -O2 -ftree-vectorize" } */
3
4
#define N 1024
5
6
int
abs
(
int
);
7
8
unsigned char
pix1
[
N
],
pix2
[
N
];
9
10
int
foo
(
void
)
11
{
12
int
i_sum
=
0
;
13
int
i
;
14
15
for
(
i
=
0
;
i
<
N
;
i
++)
16
i_sum
+=
abs
(
pix1
[
i
] -
pix2
[
i
]);
17
18
return
i_sum
;
19
}
20
21
/* { dg-final { scan-assembler "psadbw" } } */