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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [nrv17.C] - Rev 749

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

// { dg-do run }

#include <cstdlib>
#include <complex>

void __attribute__((noinline))
h(std::complex<double> x)
{
  if (x.real() != 2.0)
    std::abort ();
}

void __attribute__((noinline))
g(std::complex<double> x)
{
  if (x.real() != 0.5)
    std::abort ();
}

void __attribute__((noinline))
f(std::complex<double> x)
{
  h (x);
  x = 1.0 / x;
  g (x);
}

int main()
{
  f(2.0);
  return 0;
}

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

powered by: WebSVN 2.1.0

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