Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/torture/pr79910.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 } */ /* { dg-additional-options "-fweb" } */ typedef unsigned char u8; #if __SIZEOF_INT__ < 4 __extension__ typedef __UINT32_TYPE__ u32; #else typedef unsigned int u32; #endif typedef unsigned long long u64; int a; static __attribute__ ((noinline, noclone)) u64 foo (u8 p1, u32 p2) { u64 b = a <= 0; p2 = 4; b >>= a == 0; p1 %= 0xfffffffff; p2 >>= b & 31; p1 += b; p2 <<= 31; return p1 + p2 + b; } int main (void) { u64 x = foo (0, 1); if (x != 0) __builtin_abort (); return 0; }