view gcc/testsuite/gcc.dg/store_merging_17.c @ 131:84e7813d76e9

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

/* PR tree-optimization/83241 */
/* { dg-do compile { target store_merge } } */
/* { dg-options "-O2" } */

struct S { int a; short b[32]; } e;
struct T { volatile int c; int d; } f;

void
foo ()
{
  struct T g = f;
  e.b[0] = 6;
  e.b[1] = 6;
  e.b[4] = g.d;
  e.b[5] = g.d >> 16;
  e.a = 1;
}