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/] [pr19402-1.c] - Blame information for rev 328

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "" } */
3
 
4
float test_powif(float x)
5
{
6
  return __builtin_powif(x, -1)
7
         + __builtin_powif(x, 0)
8
         + __builtin_powif(x, 1)
9
         + __builtin_powif(x, 2);
10
}
11
 
12
double test_powi(double x)
13
{
14
  return __builtin_powi(x, -1)
15
         + __builtin_powi(x, 0)
16
         + __builtin_powi(x, 1)
17
         + __builtin_powi(x, 2);
18
}
19
 
20
long double test_powil(long double x)
21
{
22
  return __builtin_powil(x, -1)
23
         + __builtin_powil(x, 0)
24
         + __builtin_powil(x, 1)
25
         + __builtin_powil(x, 2);
26
}
27
 
28
/* { dg-final { scan-assembler-not "__builtin_" } } */
29
 

powered by: WebSVN 2.1.0

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