repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
vectorize2.c
blob
427e2d401c05e4cb290a805754f1cca199791359
1
/* { dg-do compile } */
2
/* { dg-require-effective-target ilp32 } */
3
/* { dg-options "-O2 -ffast-math -ftree-vectorize -msse2 -mfpmath=sse -mtune=generic" } */
4
5
double
a
[
256
];
6
int
b
[
256
];
7
unsigned short
c
[
256
];
8
9
extern
long
lrint
(
double
);
10
11
void
foo
(
void
)
12
{
13
int
i
;
14
15
for
(
i
=
0
;
i
<
256
; ++
i
)
16
b
[
i
] =
lrint
(
a
[
i
]);
17
}
18
19
void
bar
(
void
)
20
{
21
int
i
;
22
23
for
(
i
=
0
;
i
<
256
; ++
i
)
24
{
25
b
[
i
] =
lrint
(
a
[
i
]);
26
c
[
i
] +=
c
[
i
];
27
}
28
}
29
30
/* { dg-final { scan-assembler "cvtpd2dq" } } */