blob: 3b7cb5c5ca03648546d425711f6f3c87bc4fc867 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* { dg-do run } */
/* { dg-require-effective-target f16c } */
/* { dg-options "-O2 -mf16c" } */
#include "f16c-check.h"
static void
f16c_test (void)
{
float val = -2;
unsigned short exp = 0xc000;
unsigned short res;
res = _cvtss_sh (val, 0);
if (res != exp)
abort ();
}
|