summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr69400.c
blob: e0eb521244d0d7713cf3bd6365f6185a8587504b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { 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;
}