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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr51396.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 693 jeremybenn
// PR tree-optimization/51396
2
// { dg-do compile }
3
// { dg-options "-O2 -fnon-call-exceptions" }
4
// { dg-additional-options "-mfma" { target i?86-*-* x86_64-*-* } }
5
 
6
double baz (double) throw ();
7
 
8
struct C
9
{
10
  C (double d = 0.0) : c (d) {}
11
  double c;
12
};
13
 
14
static inline void
15
foo (double x, const C &y)
16
{
17
  x ? (y.c * baz (x)) : (C (), y);
18
}
19
 
20
void
21
bar (double x, C y)
22
{
23
  foo (x, y);
24
}

powered by: WebSVN 2.1.0

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