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
c++: Add missing auto_diagnostic_groups
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
avx512f-vcvtsd2usi-2.c
blob
e53012446e016b9c41ed0d9ad35f370577af6ac1
1
/* { dg-do run } */
2
/* { dg-options "-O2 -mavx512f" } */
3
/* { dg-require-effective-target avx512f } */
4
5
#include
"avx512f-check.h"
6
7
void static
8
avx512f_test
(
void
)
9
{
10
union128d s1
;
11
unsigned int
d
;
12
unsigned int
e
;
13
14
s1
.
x
=
_mm_set_pd
(
24.43
,
68.346
);
15
d
=
_mm_cvtsd_u32
(
s1
.
x
);
16
e
= (
unsigned int
)(
s1
.
a
[
0
] +
0.5
);
17
18
if
(
e
!=
d
)
19
abort
();
20
}