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
PR/61062 Fix arm_neon.h ZIP/UZP/TRN for bigendian.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
vcvtph2ps-1.c
blob
3b46671f0566939517c202847b141aa7e800ebe6
1
/* { dg-do run } */
2
/* { dg-require-effective-target f16c } */
3
/* { dg-options "-O2 -mf16c" } */
4
5
#include
"f16c-check.h"
6
7
static void
8
f16c_test
(
void
)
9
{
10
union128i_w val
;
11
union128 res
;
12
float
exp
[
4
];
13
14
exp
[
0
] =
1
;
15
exp
[
1
] = -
2
;
16
exp
[
2
] = -
1
;
17
exp
[
3
] =
2
;
18
19
val
.
a
[
0
] =
0x3c00
;
20
val
.
a
[
1
] =
0xc000
;
21
val
.
a
[
2
] =
0xbc00
;
22
val
.
a
[
3
] =
0x4000
;
23
24
res
.
x
=
_mm_cvtph_ps
(
val
.
x
);
25
26
if
(
check_union128
(
res
,
exp
))
27
abort
();
28
}