Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/signext.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
void longprint (x) long long x; { printf (" %d, %d\n", (unsigned) ((unsigned long long) x >> 32), (unsigned) x); } void k_min (p, qa, d) int d; { int s = 1; long long x; if (s >= d) s -= d; x = ((long long)((8 * s) % 3) + qa) % d; longprint (x); } int main () { k_min (100003, -600017, 3); return 0; }