view gcc/testsuite/gcc.dg/pr56098-2.c @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR tree-optimization/56098 */
/* { dg-do compile } */
/* { dg-options "-O2 -fhoist-adjacent-loads -fdump-tree-optimized" } */

struct S { volatile int i; volatile int j; };

int
bar (struct S *x, int y)
{
  int r;
  if (y)
    r = x->i;
  else
    r = x->j;
  return r;
}

/* { dg-final { scan-tree-dump-not "r_\[0-9]* =.v. \[^\n\r]*;\[\n\r]*  r_\[0-9]* =.v. " "optimized" } } */