RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / signext.c
blob2724098d0318696cb8d3124a1d9e67ddc83d47a6
1 void longprint (x)
2 long long x;
4 printf (" %d, %d\n", (unsigned) ((unsigned long long) x >> 32),
5 (unsigned) x);
8 void
9 k_min (p, qa, d)
10 int d;
12 int s = 1;
13 long long x;
15 if (s >= d)
16 s -= d;
18 x = ((long long)((8 * s) % 3) + qa) % d;
19 longprint (x);
22 int
23 main ()
25 k_min (100003, -600017, 3);
26 return 0;