1 // This file can be used to see what a native C compiler is generating for a
2 // variety of interesting operations.
3 //
4 // RUN: %clang_cc1 -emit-llvm %s -o -
5 
udiv(unsigned int X,unsigned int Y)6 unsigned int udiv(unsigned int X, unsigned int Y) {
7   return X/Y;
8 }
sdiv(int X,int Y)9 int sdiv(int X, int Y) {
10   return X/Y;
11 }
urem(unsigned int X,unsigned int Y)12 unsigned int urem(unsigned int X, unsigned int Y) {
13   return X%Y;
14 }
srem(int X,int Y)15 int srem(int X, int Y) {
16   return X%Y;
17 }
18 
setlt(int X,int Y)19 _Bool setlt(int X, int Y) {
20   return X < Y;
21 }
22 
setgt(int X,int Y)23 _Bool setgt(int X, int Y) {
24   return X > Y;
25 }
26