Commit 4b9e501c by Andrew Pinski Committed by Andrew Pinski

complex-3.c: Split out first part into ...

2006-02-20  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc.dg/tree-ssa/complex-3.c: Split out first part into ...
        * gcc.dg/tree-ssa/complex-4.c: Here.

From-SVN: r111309
parent 406f9d5e
2006-02-20 Andrew Pinski <pinskia@physics.uc.edu>
* gcc.dg/tree-ssa/complex-3.c: Split out first part into ...
* gcc.dg/tree-ssa/complex-4.c: Here.
2006-02-19 Roger Sayle <roger@eyesopen.com>
PR middle-end/19543
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
int g(_Complex int*);
int f(void)
{
_Complex int t = 0;
int i, j;
__real__ t += 2;
__imag__ t += 2;
return g(&t);
}
/* { dg-final { scan-tree-dump-times "__complex__" 0 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */
typedef _Complex float COMPLEX_FLOAT;
......
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
int g(_Complex int*);
int f(void)
{
_Complex int t = 0;
int i, j;
__real__ t += 2;
__imag__ t += 2;
return g(&t);
}
/* { dg-final { scan-tree-dump-times "__complex__" 0 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment