Skip to content
Snippets Groups Projects
Commit 1045fb4d authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Update test

parent dbf30e58
No related branches found
No related tags found
No related merge requests found
...@@ -8,11 +8,11 @@ Import('env') ...@@ -8,11 +8,11 @@ Import('env')
env.Append(CXXFLAGS=" -Wall -Werror") env.Append(CXXFLAGS=" -Wall -Werror")
env['BASE_IRDB_LIBS']="IRDB-core", "pqxx", "pq", "BeaEngine_s_d", "EXEIO" env['BASE_IRDB_LIBS']="IRDB-core", "pqxx", "pq", "BeaEngine_s_d", "EXEIO", "ElfDep"
if sysname != "SunOS": if sysname != "SunOS":
# setup libraries needed for linking # setup libraries needed for linking
env['BASE_IRDB_LIBS']="IRDB-core", "pqxx", "pq", "BeaEngine_s_d", "EXEIO", "pebliss" env['BASE_IRDB_LIBS']="IRDB-core", "pqxx", "pq", "BeaEngine_s_d", "EXEIO", "pebliss", "ElfDep"
# pebliss requires iconv, which needs to be explicit on cygwin. # pebliss requires iconv, which needs to be explicit on cygwin.
if "CYGWIN" in sysname: if "CYGWIN" in sysname:
......
...@@ -4,6 +4,7 @@ Import('env') ...@@ -4,6 +4,7 @@ Import('env')
dirs=''' dirs='''
constant_unroll constant_unroll
zafl
''' '''
......
...@@ -101,7 +101,7 @@ int ConstantUnroll_t::execute() ...@@ -101,7 +101,7 @@ int ConstantUnroll_t::execute()
if (f.getMnemonic() != "je" && f.getMnemonic() !="jeq" && f.getMnemonic() !="jne") return; if (f.getMnemonic() != "je" && f.getMnemonic() !="jeq" && f.getMnemonic() !="jne") return;
const auto imm = d.getImmediate(); const auto imm = d.getImmediate();
if (imm == 0 || imm == 1 || imm == -1 || imm == 0xff) if (imm == 0 || imm == 1 || imm == -1 || imm == 0xff || imm == 0xffff)
return; return;
// we now have a cmp instruction to unroll // we now have a cmp instruction to unroll
......
...@@ -9,9 +9,12 @@ int main(int argc, char **argv) ...@@ -9,9 +9,12 @@ int main(int argc, char **argv)
read(0, &x, 4); read(0, &x, 4);
// if (x == 33620225) // 0x02010101 // if (x == 33620225) // 0x02010101
if (x == 3791716609) // 0xe2010101 // if (x == 3791716609) // 0xe2010101
// if (x == 16843057) // if (x == 16843057)
// if (x == 16851249) // if (x == 16851249)
// if (x == 0x7c3f)
if (x == 0x237c3f)
// if (x == 0x3f7c1234)
abort(); abort();
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment