1 #define WITH_TARGET_WORD_MSB 0
2 #define WITH_TARGET_WORD_BITSIZE 64
3 #define WITH_HOST_WORD_BITSIZE (sizeof (int) * 8)
4 #define WITH_TARGET_BYTE_ORDER BIG_ENDIAN /* does not matter */
6 #define ASSERT(EXPRESSION) \
9 fprintf (stderr, "%s:%d: assertion failed - %s\n", \
10 __FILE__, __LINE__, #EXPRESSION); \
15 #define SIM_BITS_INLINE (INCLUDE_MODULE | INCLUDED_BY_MODULE)
19 #include "sim-basics.h"
38 #define MAX_INT8 UNSIGNED64 (127)
39 #define MIN_INT8 UNSIGNED64 (128)
41 #define MAX_INT16 UNSIGNED64 (32767)
42 #define MIN_INT16 UNSIGNED64 (32768)
44 #define MAX_INT32 UNSIGNED64 (0x7fffffff)
45 #define MIN_INT32 UNSIGNED64 (0x80000000)
47 #define MAX_INT64 UNSIGNED64 (0x7fffffffffffffff)
48 #define MIN_INT64 UNSIGNED64 (0x8000000000000000)
51 print_hex (unsigned64 val
, int nr_bits
)
56 printf ("0x%02lx", (long) (unsigned8
) (val
));
59 printf ("0x%04lx", (long) (unsigned16
) (val
));
62 printf ("0x%08lx", (long) (unsigned32
) (val
));
65 printf ("0x%08lx%08lx",
66 (long) (unsigned32
) (val
>> 32),
67 (long) (unsigned32
) (val
));
79 #include "alu-n-tst.h"
83 #include "alu-n-tst.h"
87 #include "alu-n-tst.h"
91 #include "alu-n-tst.h"
103 return (errors
!= 0);