Additional merge fixes

This commit is contained in:
ghidra1 2019-07-12 17:48:02 -04:00
parent e0e2c58eb7
commit a28abc9ab0
3 changed files with 22 additions and 3 deletions

View file

@ -1,5 +1,4 @@
##VERSION: 2.0
.classpath||GHIDRA||||END|
.project||GHIDRA||||END|
Module.manifest||GHIDRA||||END|
build.gradle||GHIDRA||||END|

View file

@ -74,7 +74,7 @@ TEST pcode_BM7_GetBitUnsignedShort_Main()
ASSERTU2(pcode_BM7_GetBitUnsignedShort(0xFF, 1), 2);
ASSERTU2(pcode_BM7_GetBitUnsignedShort(0, 1), 0);
ASSERTU2(pcode_BM7_GetBitUnsignedShort(U2_MAX, 8), 256);
ASSERTU2(pcode_BM7_GetBitUnsignedShort(U2_MAX, 16), 0);
ASSERTU2(pcode_BM7_GetBitUnsignedShort(U2_MAX, 15), 32768);
}
TEST pcode_BM8_GetBitUnsignedChar_Main()
@ -309,7 +309,7 @@ TEST pcode_BM28_ToggleBitChar_Main()
ASSERTI1(pcode_BM28_ToggleBitChar(0xFF, 1), -3);
ASSERTI1(pcode_BM28_ToggleBitChar(0, 1), 2);
ASSERTI1(pcode_BM28_ToggleBitChar(I1_MAX, 4), 111);
ASSERTI1(pcode_BM28_ToggleBitChar(I1_MAX, 8), 127);
ASSERTI1(pcode_BM28_ToggleBitChar(I1_MAX, 7), -1);
}
#ifdef HAS_LONGLONG

View file

@ -585,6 +585,26 @@ PCodeTest({
'has_longlong': 0,
})
cunit({
'name': 'Z80',
'toolchain': 'SDCC/z80',
'toolchain_type': 'sdcc',
'compile_exe': 'bin/sdcc',
'ccflags': '-mz80 -V --verbose --std-sdcc11 -DINT4_IS_LONG',
'language_id': 'z80:LE:16:default',
'variants': {'OX':''},
'has_float': 0,
'has_double': 0,
'has_longlong': 0,
'small_build': 1,
# Currently the 'omitted' option is only supported by the SDCC toolchain!
# Causes a bit of funk with tpp.py still including references to these
# tests in cunit_main.c but the compiler accepts it with a warning.
'omitted': {'PointerManipulation', 'StructUnionManipulation'},
# These tests are omitted because the SDCC compiler doesn't properly handle
# structs in functions and requires a more strict format than ANSI C requires.
})
PCodeTest({
'name': 'CR16C',
'build_all': 1,