diff test/float.c @ 471:cfa4db8b18a5

mips float arg fix
author kono
date Tue, 08 Nov 2005 12:11:17 +0900
parents 0c256ea2a97e
children 834b5792bc5f
line wrap: on
line diff
--- a/test/float.c	Sat Jul 30 21:38:28 2005 +0900
+++ b/test/float.c	Tue Nov 08 12:11:17 2005 +0900
@@ -5,7 +5,7 @@
 
 extern double sin(double);
 // extern float fsin(float);
-double test2(double f,int i);
+double test9(double f,int i);
 
 float f = 0.3;
 double d = 0.3;
@@ -49,6 +49,38 @@
    return (float)u;
 }
 
+void
+test1(float id, float x,float y,float sx,float sy,int behav)
+{
+    printf("%f %f %f %f %f %d\n", id,x,y,sx,sy,behav);
+}
+
+void
+test2(int id, int x,float y,float sx,float sy,int behav)
+{
+    printf("%d %d %f %f %f %d\n", id,x,y,sx,sy,behav);
+}
+
+void
+test3(int id, float x,float y,float sx,float sy,int behav)
+{
+    printf("%d %f %f %f %f %d\n", id,x,y,sx,sy,behav);
+}
+
+void
+test4(int id, float x,int y,float sx,float sy,int behav)
+{
+    printf("%d %f %d %f %f %d\n", id,x,y,sx,sy,behav);
+}
+
+void
+test5(float id, int x,float y,int sx,float sy,int behav)
+{
+    printf("%f %d %f %d %f %d\n", id,x,y,sx,sy,behav);
+}
+
+
+
 int
 main(int ac,char *av[]) {
    double g;
@@ -58,6 +90,12 @@
 
    printf("#0058:%g\n",d00);
 
+    test1(1,2,3,10,11,4);
+    test2(1,2,3,10,11,4);
+    test3(1,2,3,10,11,4);
+    test4(1,2,3,10,11,4);
+    test5(1,2,3,10,11,4);
+
    g = 1.0;
    g = -g;
    printf("#0062:%d\ncond0 ",1);
@@ -116,7 +154,7 @@
    print(1.234e-10);
 
    test1();
-   printf("#0118:nested call: %g\n",test2(test2(test2(test2(-0.333,3),5),6),7));
+   printf("#0118:nested call: %g\n",test9(test9(test9(test9(-0.333,3),5),6),7));
    return 0;
 }
 
@@ -349,3 +387,5 @@
     h =  f-0.5;
     return h/3-(3.0-(g+3)*test2(f*0.5,i-1)/(h-1));
 }
+
+