URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [opt/] [reg-stack4.C] - Rev 378
Go to most recent revision | Compare with Previous | Blame | View Log
// PR target/12900
// Origin: <snyder@fnal.gov>
// This used to fail on x86 because the reg-stack pass
// deleted a valid edge.
// { dg-do compile }
// { dg-options "-mtune=i586 -O2" { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
struct array {
double data;
virtual ~array();
};
double glob;
double ext1(double);
int nmuons;
void track_match()
{
array vecdca;
if (glob < 10) return;
double p = glob*5;
double phi = vecdca.data;
ext1 (vecdca.data-glob);
ext1 (phi*2);
if (1 < p)
++nmuons;
}
Go to most recent revision | Compare with Previous | Blame | View Log