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
i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
pr102318.c
blob
cc58efacecdf82fbd6b811443bb5c560e4734745
1
/* { dg-do compile } */
2
3
void
4
vec_slp_int16_t
(
short int
*
restrict a
,
short int
*
restrict b
,
int
n
)
5
{
6
short int
x0
=
b
[
0
];
7
short int
x1
=
b
[
1
];
8
short int
x2
=
b
[
2
];
9
short int
x3
=
b
[
3
];
10
for
(
int
i
=
0
;
i
<
n
; ++
i
)
11
{
12
x0
+=
a
[
i
*
4
];
13
x1
+=
a
[
i
*
4
+
1
];
14
x2
+=
a
[
i
*
4
+
2
];
15
x3
+=
a
[
i
*
4
+
3
];
16
}
17
b
[
0
] =
x0
;
18
b
[
1
] =
x1
;
19
b
[
2
] =
x2
;
20
b
[
3
] =
x3
;
21
}