Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr95694.c
blob6f5e1900a022e9c8f8c33aa1396e2fa6bb0aba67
1 /* PR tree-optimization/68835 */
2 /* { dg-do run { target int128 } } */
3 /* { dg-options "-fno-tree-forwprop -fno-tree-ccp -O1 -fno-tree-dominator-opts -fno-tree-fre" } */
5 __attribute__((noinline, noclone)) unsigned __int128
6 foo (void)
8 unsigned __int128 x = (unsigned __int128) 0xffffffffffffffffULL;
9 struct { unsigned __int128 a : 65; } w;
10 w.a = x;
11 w.a += x;
12 return w.a;
15 int
16 main ()
18 unsigned __int128 x = foo ();
19 if ((unsigned long long) x != 0xfffffffffffffffeULL
20 || (unsigned long long) (x >> 64) != 1)
21 __builtin_abort ();
22 return 0;