Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / vcvtph2ps-3.c
blob49b61f678c48763b9b141767dc575cb56943f011
1 /* { dg-do run } */
2 /* { dg-require-effective-target f16c } */
3 /* { dg-options "-O2 -mf16c" } */
5 #include "f16c-check.h"
7 static void
8 f16c_test (void)
10 unsigned short val = 0xc000;
11 float exp = -2;
12 float res;
14 res = _cvtsh_ss (val);
16 if (res != exp)
17 abort ();