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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [float1.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// PR optimization/11637
// PR optimization/11637
// Origin: 
// Origin: 
// This used to fail to assemble on x86 because a decimal
// This used to fail to assemble on x86 because a decimal
// floating point litteral was emitted, which originated
// floating point litteral was emitted, which originated
// from a bogus REG_EQUAL note not removed by the combiner.
// from a bogus REG_EQUAL note not removed by the combiner.
// { dg-do assemble }
// { dg-do assemble }
// { dg-options "-O2 -fnon-call-exceptions" }
// { dg-options "-O2 -fnon-call-exceptions" }
void f(long int seed);
void f(long int seed);
void g(float &o)
void g(float &o)
{
{
  float a = 0.05f;
  float a = 0.05f;
  float b = 1.0 - a;
  float b = 1.0 - a;
  float c = 1.0 + a;
  float c = 1.0 + a;
  f(0);
  f(0);
  o = a;
  o = a;
}
}
 
 

powered by: WebSVN 2.1.0

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