view gcc/testsuite/gcc.dg/pr93412.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
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;
}