aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr69845-2.c
blob: e0b38e9966c20c09d064dc6fae5533c75eabf2d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-require-effective-target int32 } */
/* { dg-options "-O -fdump-tree-gimple -fdump-tree-optimized" } */

int
main ()
{
  struct S { char s; } v;
  v.s = 47;
  unsigned int a = (unsigned int) v.s;
  unsigned int b = (27005061 + (a + 680455));
  unsigned int c
    = ((1207142401u * (((8u * b) + 9483541u) - 230968044u)) + 469069442u);
  if (c != 1676211843u)
    __builtin_abort ();
  return 0;
}

/* { dg-final { scan-tree-dump-times "b \\\* 1067204616" 1 "gimple" } } */
/* { dg-final { scan-tree-dump-not "abort" "optimized" } } */