aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr119417.c
blob: d0b5378ceb42559837937c0fc4a4478adfcf751d (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
/* PR tree-optimization/119417 */
/* { dg-do run { target int32 } } */

__attribute__((noipa)) void
foo (unsigned long long x)
{
  if (x != 0)
    __builtin_abort ();
}

unsigned v = 0x10000;

int
main ()
{
  unsigned long long a = 0;
  while (1)
    {
      a = a + ((v & 0xFFFF) * 2);
      foo (a);
      if (v)
	break;
    }
}