aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/sra-12.c
blob: 988caecd4ae40d2e32aeebef4d5c66f6a5e0484e (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.  */

/* { 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"} } */
/* { dg-final { cleanup-tree-dump "release_ssa" } } */