OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [vcvtph2ps-3.c] - Blame information for rev 848

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { 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
  unsigned short val = 0xc000;
11
  float exp = -2;
12
  float res;
13
 
14
  res = _cvtsh_ss (val);
15
 
16
  if (res != exp)
17
    abort ();
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.