aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr69845-1.c
blob: 92927ba491385af95fa1812c4fa3c189e17d26eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { 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;
  int a = (int) v.s;
  int b = (27005061 + (a + 680455));
  int c = ((1207142401 * (((8 * b) + 9483541) - 230968044)) + 469069442);
  if (c != 1676211843)
    __builtin_abort ();
  return 0;
}

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