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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [builtins-63.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Copyright (C) 2007 Free Software Foundation.
2
 
3
   Check that isinf, isinff and isinfl built-in functions compile.
4
 
5
   Written by Uros Bizjak, 31st January 2007.  */
6
 
7
/* { dg-do compile } */
8
/* { dg-options "-O2" } */
9
 
10
extern int isinf(double);
11
extern int isinff(float);
12
extern int isinfl(long double);
13
 
14
int test1(double x)
15
{
16
  return isinf(x);
17
}
18
 
19
int test1f(float x)
20
{
21
  return isinff(x);
22
}
23
 
24
int test1l(long double x)
25
{
26
  return isinfl(x);
27
}
28
 

powered by: WebSVN 2.1.0

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