restored else branch for other ports
[fw/sdcc] / support / regression / tests / float.c
index 827ac7830f84127e80dfe4f9d11ba0193d1aeacc..e2585aa3fad42a97150d36b4fa818fa15f88ad01 100644 (file)
   #define REVDIV 1
 #endif
 
-#ifdef __mcs51
-#define STORAGE xdata
-#define XDATA xdata
+#ifdef SDCC_mcs51
+#  define STORAGE xdata
+#  define XDATA xdata
+#elif SDCC_pic16
+#  define STORAGE code
+#  define XDATA
 #else
-#define STORAGE
-#define XDATA
+#  define STORAGE
+#  define XDATA
 #endif
 
 XDATA volatile float left, right, result;
@@ -50,7 +53,8 @@ struct {
   {   0x10000,  0x10,   0x10010,    0xfff0,    0x100000,     0x1000,  0.00024414},
   {  0x100000,  0x10,  0x100010,   0xffff0,   0x1000000,    0x10000,  0 /* ignore */},
   { 0x1000000,  0x10, 0x1000010,  0xfffff0,  0x10000000,   0x100000,  0 /* ignore */},
-  {0x10000000,  0x10,0x10000010, 0xffffff0, 0x100000000,  0x1000000,  0 /* ignore */},
+  {0x10000000,  0x10,0x10000010, 0xffffff0, (float)0x10000000*0x10,
+                                                          0x1000000,  0 /* ignore */},
 };
 
 XDATA int tests=0, errors=0;