Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr89679.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* PR rtl-optimization/89679 */ /* { dg-do run } */ /* { dg-options "-Og -frerun-cse-after-loop -fno-tree-fre" } */ unsigned short g; void foo (unsigned long long x) { if (x != 0xffff) __builtin_abort (); } int main () { #if __SIZEOF_SHORT__ == 2 && __SIZEOF_INT__ == 4 && __CHAR_BIT__ == 8 unsigned short d = 0; unsigned long long x, c = ~0; c = c >> d; __builtin_memset (&d, c, 2); x = d + g; foo (x); #endif return 0; }