projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
[fw/sdcc]
/
support
/
regression
/
tests
/
float.c
diff --git
a/support/regression/tests/float.c
b/support/regression/tests/float.c
index 0cc2fbace61d7ac216b894f37847bb4aa7b3577d..e2585aa3fad42a97150d36b4fa818fa15f88ad01 100644
(file)
--- a/
support/regression/tests/float.c
+++ b/
support/regression/tests/float.c
@@
-1,7
+1,6
@@
/* Float tests.
operation: ADD, SUB, MUL, DIV, REVDIV
/* Float tests.
operation: ADD, SUB, MUL, DIV, REVDIV
- Test excluded from pic16 regression test
*/
#if 1
*/
#if 1
@@
-23,14
+22,16
@@
#endif
#ifdef SDCC_mcs51
#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
#else
-#define STORAGE
-#define XDATA
+#
define STORAGE
+#
define XDATA
#endif
#endif
-#ifndef SDCC_pic16
XDATA volatile float left, right, result;
struct {
XDATA volatile float left, right, result;
struct {
@@
-80,12
+81,10
@@
char compare (float is, float should) {
return 1;
}
}
return 1;
}
}
-#endif /* SDCC_pic16 */
void
testFloatMath(void)
{
void
testFloatMath(void)
{
-#ifndef SDCC_pic16
int i;
int t = sizeof(cases)/sizeof(cases[0]);
float result;
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
}
DEBUG(printf ("%d tests, %d errors\n", tests, errors));
-#endif /* SDCC_pic16 */
}
#ifndef REENTRANT
}
#ifndef REENTRANT