blob: 4718263b72f75da13b0f5f8cfc708adeaeb278a6 [file] [log] [blame]
Chris Lattner8b3df482004-04-07 05:06:39 +00001// This file can be used to see what a native C compiler is generating for a
2// variety of interesting operations.
3unsigned int udiv(unsigned int X, unsigned int Y) {
4 return X/Y;
5}
6int sdiv(int X, int Y) {
7 return X/Y;
8}
9unsigned int urem(unsigned int X, unsigned int Y) {
10 return X%Y;
11}
12int srem(int X, int Y) {
13 return X%Y;
14}
15
16_Bool setlt(int X, int Y) {
17 return X < Y;
18}
19
20_Bool setgt(int X, int Y) {
21 return X > Y;
22}
23