sete(int x,int y)1 static int sete(int x, int y)
2 {
3 return x == y;
4 }
5
setne(int x,int y)6 static int setne(int x, int y)
7 {
8 return x != y;
9 }
10
setl(int x,int y)11 static int setl(int x, int y)
12 {
13 return x < y;
14 }
15
setg(int x,int y)16 static int setg(int x, int y)
17 {
18 return x > y;
19 }
20
setle(int x,int y)21 static int setle(int x, int y)
22 {
23 return x <= y;
24 }
25
setge(int x,int y)26 static int setge(int x, int y)
27 {
28 return x >= y;
29 }
30
setb(unsigned int x,unsigned int y)31 static int setb(unsigned int x, unsigned int y)
32 {
33 return x < y;
34 }
35
seta(unsigned int x,unsigned int y)36 static int seta(unsigned int x, unsigned int y)
37 {
38 return x > y;
39 }
40
setbe(unsigned int x,unsigned int y)41 static int setbe(unsigned int x, unsigned int y)
42 {
43 return x <= y;
44 }
45
setae(unsigned int x,unsigned int y)46 static int setae(unsigned int x, unsigned int y)
47 {
48 return x >= y;
49 }
50
setfe(float x,float y)51 static int setfe(float x, float y)
52 {
53 return x == y;
54 }
55
setfne(float x,float y)56 static int setfne(float x, float y)
57 {
58 return x != y;
59 }
60
setfl(float x,float y)61 static int setfl(float x, float y)
62 {
63 return x < y;
64 }
65
setfg(float x,float y)66 static int setfg(float x, float y)
67 {
68 return x > y;
69 }
70
setfle(float x,float y)71 static int setfle(float x, float y)
72 {
73 return x <= y;
74 }
75
setfge(float x,float y)76 static int setfge(float x, float y)
77 {
78 return x >= y;
79 }
80
81 /*
82 * check-name: Comparison operator code generation
83 * check-command: sparsec -c $file -o tmp.o
84 */
85