restored else branch for other ports
[fw/sdcc] / support / regression / tests / float.c
index 0cc2fbace61d7ac216b894f37847bb4aa7b3577d..e2585aa3fad42a97150d36b4fa818fa15f88ad01 100644 (file)
@@ -1,7 +1,6 @@
 /* Float tests.
 
    operation: ADD, SUB, MUL, DIV, REVDIV
-   Test excluded from pic16 regression test
 */
 
 #if 1
 #endif
 
 #ifdef SDCC_mcs51
-#define STORAGE xdata
-#define XDATA xdata
+#  define STORAGE xdata
+#  define XDATA xdata
+#elif SDCC_pic16
+#  define STORAGE code
+#  define XDATA
 #else
-#define STORAGE
-#define XDATA
+#  define STORAGE
+#  define XDATA
 #endif
 
-#ifndef SDCC_pic16
 XDATA volatile float left, right, result;
 
 struct {
@@ -80,12 +81,10 @@ char compare (float is, float should) {
     return 1;
   }
 }
-#endif  /* SDCC_pic16 */
 
 void
 testFloatMath(void)
 {
-#ifndef SDCC_pic16
   int i;
   int t = sizeof(cases)/sizeof(cases[0]);
   float result;
@@ -123,7 +122,6 @@ testFloatMath(void)
     #endif
   }
   DEBUG(printf ("%d tests, %d errors\n", tests, errors));
-#endif  /* SDCC_pic16 */
 }
 
 #ifndef REENTRANT