aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr93412.c
blob: ba82ae1bb34a86a87e6c2c3896d2e3c7f64b1a25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR target/93412 */
/* { dg-do compile { target int128 } } */
/* { dg-options "-Og" } */

unsigned char a;
int b;
unsigned c;

int
foo (int e, int f, int g, int h, int k, int i, short j)
{
  b = __builtin_add_overflow (a, 0, &c);
  b = __builtin_add_overflow_p (b, a, (unsigned __int128) 0) ? b : 0;
  return e + f + g + a + h + k + i + j + c;
}