/* 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 {
return 1;
}
}
-#endif /* SDCC_pic16 */
void
testFloatMath(void)
{
-#ifndef SDCC_pic16
int i;
int t = sizeof(cases)/sizeof(cases[0]);
float result;
#endif
}
DEBUG(printf ("%d tests, %d errors\n", tests, errors));
-#endif /* SDCC_pic16 */
}
#ifndef REENTRANT