aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr104544.c
blob: 275b666923d5aa1820ca75a17ec9f31cc49a55c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR rtl-optimization/104544 */
/* { dg-do compile { target int128 } } */
/* { dg-options "-O2 -fcompare-debug" } */

int m, n;
__int128 q;

void
bar (unsigned __int128 x, int y)
{
  if (x)
    q += y;
}

void
foo (void)
{
  bar (!!q - 1, (m += m ? m : 1) < n);
}