view gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-15.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR79725 */
/* { dg-do compile { target size32plus } } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

_Complex double f(_Complex double x[])
{
  _Complex float p = 1.0;
  for (int i = 0; i < 1000000; i++)
    p = x[i];
  return p;
}

/* Verify we end up with a single BB and no loop.  */
/* { dg-final { scan-tree-dump-times "goto" 0 "optimized" } } */