Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr84614.c @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* PR target/84614 */ /* { dg-do run { target int128 } } */ /* { dg-options "-Og -fno-split-wide-types -fno-tree-coalesce-vars -g --param=max-combine-insns=3 -fcompare-debug" } */ unsigned __int128 a; unsigned __int128 b (unsigned short c, unsigned int d) { unsigned long long e; __builtin_sub_overflow (0, d, &e); e >>= c; c ^= 65535; d ^= 824; return c + a + d + e; } int main () { unsigned __int128 x = b (0, 9); if (__SIZEOF_INT__ * __CHAR_BIT__ == 32 && __SIZEOF_LONG_LONG__ * __CHAR_BIT__ == 64 && __SIZEOF_INT128__ * __CHAR_BIT__ == 128 && x != (((unsigned __int128) 1 << 64) | 0x10327)) __builtin_abort (); return 0; }