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
2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
vcvtps2ph-3.c
blob
3b7cb5c5ca03648546d425711f6f3c87bc4fc867
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
float
val
= -
2
;
11
unsigned short
exp
=
0xc000
;
12
unsigned short
res
;
13
14
res
=
_cvtss_sh
(
val
,
0
);
15
16
if
(
res
!=
exp
)
17
abort
();
18
}