aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/nrv1.c
blob: a02823697e974a58adb573fb2de7df3fb84d5b55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Verify that gimple-level NRV is occurring even for SSA_NAMEs.  *./
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */
/* { dg-require-effective-target ia32 } */

_Complex double foo (_Complex double x)
{
  return __builtin_cexp (x);
}

/* { dg-final { scan-tree-dump-times "return slot optimization" 1 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */