view gcc/testsuite/gcc.dg/torture/pr69400.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do run { target int128 } } */

typedef unsigned __int128 u128;

u128 __attribute__((noinline, noclone))
foo(void)
{
	u128 u = -2;
	u %= 0xffffffffffffffffllu;
	return u;
}

int
main()
{
	u128 x = foo();
	if (x != 0xfffffffffffffffellu)
		__builtin_abort();
	return 0;
}