Commit c0e4f189 by Aldy Hernandez Committed by Aldy Hernandez

* gcc.c-torture/execute/divmod-1.c: Convert to ANSI.

From-SVN: r45104
parent 340f7e7c
2001-08-21 Aldy Hernandez <aldyh@redhat.com>
* gcc.c-torture/execute/divmod-1.c: Convert to ANSI.
2001-08-20 Janis Johnson <janis187@us.ibm.com> 2001-08-20 Janis Johnson <janis187@us.ibm.com>
* gcc.misc-tests/gcov.exp: Add support for branch information. * gcc.misc-tests/gcov.exp: Add support for branch information.
......
div1 (x) div1 (signed char x)
signed char x;
{ {
return x / -1; return x / -1;
} }
div2 (x) div2 (signed short x)
signed short x;
{ {
return x / -1; return x / -1;
} }
div3 (x, y) div3 (signed char x, signed char y)
signed char x;
signed char y;
{ {
return x / y; return x / y;
} }
div4 (x, y) div4 (signed short x, signed short y)
signed short x;
signed short y;
{ {
return x / y; return x / y;
} }
mod1 (x) mod1 (signed char x)
signed char x;
{ {
return x % -1; return x % -1;
} }
mod2 (x) mod2 (signed short x)
signed short x;
{ {
return x % -1; return x % -1;
} }
mod3 (x, y) mod3 (signed char x, signed char y)
signed char x;
signed char y;
{ {
return x % y; return x % y;
} }
mod4 (x, y) mod4 (signed short x, signed short y)
signed short x;
signed short y;
{ {
return x % y; return x % y;
} }
signed long signed long
mod5 (x, y) mod5 (signed long x, signed long y)
signed long x;
signed long y;
{ {
return x % y; return x % y;
} }
unsigned long unsigned long
mod6 (x, y) mod6 (unsigned long x, unsigned long y)
unsigned long x;
unsigned long y;
{ {
return x % y; return x % y;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment