Chris Lattner | 8b3df48 | 2004-04-07 05:06:39 +0000 | [diff] [blame] | 1 | // This file can be used to see what a native C compiler is generating for a |
2 | // variety of interesting operations. | ||||
3 | unsigned int udiv(unsigned int X, unsigned int Y) { | ||||
4 | return X/Y; | ||||
5 | } | ||||
6 | int sdiv(int X, int Y) { | ||||
7 | return X/Y; | ||||
8 | } | ||||
9 | unsigned int urem(unsigned int X, unsigned int Y) { | ||||
10 | return X%Y; | ||||
11 | } | ||||
12 | int 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 |