add(int x,int y)11f5207b7SJohn Levon static int add(int x, int y)
21f5207b7SJohn Levon {
31f5207b7SJohn Levon 	return x + y;
41f5207b7SJohn Levon }
51f5207b7SJohn Levon 
uadd(unsigned int x,unsigned int y)61f5207b7SJohn Levon static unsigned int uadd(unsigned int x, unsigned int y)
71f5207b7SJohn Levon {
81f5207b7SJohn Levon 	return x + y;
91f5207b7SJohn Levon }
101f5207b7SJohn Levon 
fadd(float x,float y)111f5207b7SJohn Levon static float fadd(float x, float y)
121f5207b7SJohn Levon {
131f5207b7SJohn Levon 	return x + y;
141f5207b7SJohn Levon }
151f5207b7SJohn Levon 
dadd(double x,double y)161f5207b7SJohn Levon static double dadd(double x, double y)
171f5207b7SJohn Levon {
181f5207b7SJohn Levon 	return x + y;
191f5207b7SJohn Levon }
201f5207b7SJohn Levon 
sub(int x,int y)211f5207b7SJohn Levon static int sub(int x, int y)
221f5207b7SJohn Levon {
231f5207b7SJohn Levon 	return x - y;
241f5207b7SJohn Levon }
251f5207b7SJohn Levon 
usub(unsigned int x,unsigned int y)261f5207b7SJohn Levon static unsigned int usub(unsigned int x, unsigned int y)
271f5207b7SJohn Levon {
281f5207b7SJohn Levon 	return x - y;
291f5207b7SJohn Levon }
301f5207b7SJohn Levon 
fsub(float x,float y)311f5207b7SJohn Levon static float fsub(float x, float y)
321f5207b7SJohn Levon {
331f5207b7SJohn Levon 	return x - y;
341f5207b7SJohn Levon }
351f5207b7SJohn Levon 
dsub(double x,double y)361f5207b7SJohn Levon static double dsub(double x, double y)
371f5207b7SJohn Levon {
381f5207b7SJohn Levon 	return x - y;
391f5207b7SJohn Levon }
401f5207b7SJohn Levon 
mul(int x,int y)411f5207b7SJohn Levon static int mul(int x, int y)
421f5207b7SJohn Levon {
431f5207b7SJohn Levon 	return x * y;
441f5207b7SJohn Levon }
451f5207b7SJohn Levon 
umul(unsigned int x,unsigned int y)461f5207b7SJohn Levon static unsigned int umul(unsigned int x, unsigned int y)
471f5207b7SJohn Levon {
481f5207b7SJohn Levon 	return x * y;
491f5207b7SJohn Levon }
501f5207b7SJohn Levon 
fmul(float x,float y)511f5207b7SJohn Levon static float fmul(float x, float y)
521f5207b7SJohn Levon {
531f5207b7SJohn Levon 	return x * y;
541f5207b7SJohn Levon }
551f5207b7SJohn Levon 
dmul(double x,double y)561f5207b7SJohn Levon static double dmul(double x, double y)
571f5207b7SJohn Levon {
581f5207b7SJohn Levon 	return x * y;
591f5207b7SJohn Levon }
601f5207b7SJohn Levon 
div(int x,int y)611f5207b7SJohn Levon static int div(int x, int y)
621f5207b7SJohn Levon {
631f5207b7SJohn Levon 	return x / y;
641f5207b7SJohn Levon }
651f5207b7SJohn Levon 
udiv(unsigned int x,unsigned int y)661f5207b7SJohn Levon static unsigned int udiv(unsigned int x, unsigned int y)
671f5207b7SJohn Levon {
681f5207b7SJohn Levon 	return x / y;
691f5207b7SJohn Levon }
701f5207b7SJohn Levon 
fdiv(float x,float y)711f5207b7SJohn Levon static float fdiv(float x, float y)
721f5207b7SJohn Levon {
731f5207b7SJohn Levon 	return x / y;
741f5207b7SJohn Levon }
751f5207b7SJohn Levon 
ddiv(double x,double y)761f5207b7SJohn Levon static double ddiv(double x, double y)
771f5207b7SJohn Levon {
781f5207b7SJohn Levon 	return x / y;
791f5207b7SJohn Levon }
801f5207b7SJohn Levon 
mod(int x,int y)811f5207b7SJohn Levon static int mod(int x, int y)
821f5207b7SJohn Levon {
831f5207b7SJohn Levon 	return x % y;
841f5207b7SJohn Levon }
851f5207b7SJohn Levon 
umod(unsigned int x,unsigned int y)861f5207b7SJohn Levon static unsigned int umod(unsigned int x, unsigned int y)
871f5207b7SJohn Levon {
881f5207b7SJohn Levon 	return x % y;
891f5207b7SJohn Levon }
901f5207b7SJohn Levon 
neg(int x)91*c85f09ccSJohn Levon static int neg(int x)
92*c85f09ccSJohn Levon {
93*c85f09ccSJohn Levon 	return -x;
94*c85f09ccSJohn Levon }
95*c85f09ccSJohn Levon 
uneg(unsigned int x)96*c85f09ccSJohn Levon static unsigned int uneg(unsigned int x)
97*c85f09ccSJohn Levon {
98*c85f09ccSJohn Levon 	return -x;
99*c85f09ccSJohn Levon }
100*c85f09ccSJohn Levon 
fneg(float x)101*c85f09ccSJohn Levon static float fneg(float x)
102*c85f09ccSJohn Levon {
103*c85f09ccSJohn Levon 	return -x;
104*c85f09ccSJohn Levon }
105*c85f09ccSJohn Levon 
dneg(double x)106*c85f09ccSJohn Levon static double dneg(double x)
107*c85f09ccSJohn Levon {
108*c85f09ccSJohn Levon 	return -x;
109*c85f09ccSJohn Levon }
110*c85f09ccSJohn Levon 
1111f5207b7SJohn Levon /*
1121f5207b7SJohn Levon  * check-name: Arithmetic operator code generation
1131f5207b7SJohn Levon  * check-command: sparsec -c $file -o tmp.o
1141f5207b7SJohn Levon  */
115