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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [float1.C] - Rev 831

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

// PR optimization/11637
// Origin: <nick@ilm.com>

// This used to fail to assemble on x86 because a decimal
// floating point litteral was emitted, which originated
// from a bogus REG_EQUAL note not removed by the combiner.

// { dg-do assemble }
// { dg-options "-O2 -fnon-call-exceptions" }

void f(long int seed);

void g(float &o)
{
  float a = 0.05f;
  float b = 1.0 - a;
  float c = 1.0 + a;

  f(0);
  o = a;
}

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.