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