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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr14888.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// 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.