view gcc/testsuite/gcc.dg/pr93412.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* 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;
}