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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [builtins-58.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -ffast-math -std=c99 -fno-ident" } */
3
 
4
#include "builtins-config.h"
5
 
6
#ifdef HAVE_C99_RUNTIME
7
double test1 (double x)
8
{
9
  return __builtin_pow (x, 1./3.);
10
}
11
 
12
double test2 (double x)
13
{
14
  return __builtin_pow (x, 4./3.);
15
}
16
 
17
double test3a (double x)
18
{
19
  return __builtin_pow (x, 5./3.);
20
}
21
 
22
double test3b (double x)
23
{
24
  return __builtin_pow (x, -5./3.);
25
}
26
 
27
double test4 (double x)
28
{
29
  return __builtin_pow (x, 7./3.);
30
}
31
#endif
32
 
33
/* { dg-final { scan-assembler-not "pow" } } */

powered by: WebSVN 2.1.0

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