summaryrefslogtreecommitdiff
path: root/support/regression/tests/and_survive.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/regression/tests/and_survive.c')
-rw-r--r--support/regression/tests/and_survive.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/support/regression/tests/and_survive.c b/support/regression/tests/and_survive.c
index b56049c6c..2056dab4b 100644
--- a/support/regression/tests/and_survive.c
+++ b/support/regression/tests/and_survive.c
@@ -50,7 +50,7 @@ int litbitchar2 (unsigned char a, unsigned char c, unsigned char e)
else
return(3);
}
-
+#ifndef __SDCC_pdk13 // Lack of code memory
/* Some architectures have non-destructive and when one operand is a literal with at most one bit per byte set (e.g. Z80) */
int litbitint (unsigned int a)
{
@@ -96,14 +96,14 @@ int regchar (unsigned char a, unsigned char c)
else
return(3);
}
-
+#endif
void testAndSurvive (void)
{
ASSERT (litbitchar (0x77u - 1) == 0);
ASSERT (litbitchar (0x74u - 1) == 1);
ASSERT (litbitchar (0x70u - 1) == 2);
ASSERT (litbitchar (0x80u - 1) == 3);
-
+#ifndef __SDCC_pdk13 // Those tests would pass, we just don't have enough space in code memory to fit them in together with the others.
ASSERT (litbitchar2 (0x01u - 1, 0x01u - 1, 0x01u) == 8);
ASSERT (litbitchar2 (0x01u - 1, 0x80u - 1, 0x01u) == 10);
ASSERT (litbitchar2 (0x74u - 1, 0x01u - 1, 0x01u) == 1);
@@ -125,5 +125,6 @@ void testAndSurvive (void)
ASSERT (regchar (0x80u - 1, 0x88u - 1) == 1);
ASSERT (regchar (0x80u - 1, 0x08u - 1) == 3);
#endif
+#endif
}