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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR target/14888
2
// This used to ICE because the truncdfsf2 isn't completely eliminated
3
 
4
// { dg-do compile }
5
// { dg-options "-O2 -ffast-math" }
6
 
7
class xcomplex
8
{
9
public:
10
  float re, im;
11
 
12
  xcomplex &operator*= (const float &fact)
13
  { re*=fact; im*=fact; return *this; }
14
};
15
 
16
void foo (xcomplex &almT, xcomplex &almG)
17
{
18
  double gb;
19
  almT*=gb;
20
  almG*=gb*42;
21
}
22
 

powered by: WebSVN 2.1.0

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