view gcc/testsuite/gcc.dg/tree-ssa/pr85726-2.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

/* PR tree-optimization/85726 */
/* { dg-do compile { target int32 } } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
/* { dg-final { scan-tree-dump " / 3145728;" "optimized" } } */
/* { dg-final { scan-tree-dump "y = 0;" "optimized" } } */

int x, y;

void
foo (int n)
{
  int c = 3 << 20;
  x = n / c;
  y = x / c;
}