view gcc/testsuite/gcc.dg/torture/pr78546-2.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR rtl-optimization/78546 */
/* { dg-do run { target int128 } } */

typedef unsigned __int128 u128;
u128 b;

int
main ()
{
  asm volatile ("" : : : "memory");
  u128 x = ((u128) ~0x7fffffffffffffffLL) - b;
  u128 y = 1 - x;
  if (y != 0x8000000000000001ULL)
    __builtin_abort ();
  return 0;
}