fixed bug [
1518322 ] regression test bitfields fails on ppc hosts
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4271
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2006-07-06 Borut Razem <borut.razem AT siol.net>
+
+ * support/regression/tests/bitfields.c:
+ fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
+
2006-07-04 Borut Razem <borut.razem AT siol.net>
* src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
{
c_bf.c0_3 = 2;
c_bf.c3_5 = 3;
+#if defined(PORT_HOST) && (defined(__ppc__) || defined(__PPC__))
+ /* bitfields on powerpc architecture are allocated from left to right */
+ ASSERT(*(char *)(&c_bf) == ((2<<(8-3)) + 3) );
+#else
ASSERT(*(char *)(&c_bf) == (2 + (3<<3)) );
+#endif
#if 0 // not yet
i_bf.i0_7 = 23;