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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr39241.c] - Blame information for rev 298

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 "-w" } */
3
 
4
static inline int
5
foo (float f)
6
{
7
  return *((int *) &f) - 1;
8
}
9
 
10
float
11
bar (float x, float y, float *z)
12
{
13
  float c = y < 0.002f ? 0.002f : y;
14
  float d = x < c ? c : x;
15
  return z[foo (c)] + z[foo (d * 255.0f)];
16
}

powered by: WebSVN 2.1.0

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