This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/78546] [6/7 Regression] wrong code at -O2 and above


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78546

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
But e.g.
typedef unsigned __int128 u128;
u128 b;

int
main ()
{
  u128 x = ((u128) ~0x7fffffffffffffff) - b;
  u128 y = 1 - x;
  if (y != 0x8000000000000001)
    __builtin_abort();
  return 0;
}

is miscompiled already before that, bisecting again.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]