aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/sra-12.c
blob: 59e5e6af6d960b6d1c30d4ce8ae96415bb5307c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Verify that SRA total scalarization will not be confused by padding.  */
/* Test skipped for targets with small (often default) MOVE_RATIO.  */
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-release_ssa" } */

struct S
{
  int i;
  unsigned short f1;
  char f2;
  unsigned short f3, f4;
};


int foo (struct S *p)
{
  struct S l;

  l = *p;
  l.i++;
  *p = l;
}

/* { dg-final { scan-tree-dump-times "l;" 0 "release_ssa" { target { ! "avr*-*-* nds32*-*-*" } } } } */
/* { dg-final { cleanup-tree-dump "release_ssa" } } */