BoomerangDecompiler / boomerang

Boomerang Decompiler - Fighting the code-rot :)
Other
374 stars 59 forks source link

Regressions when running regression test suite for 64 bit Windows #174

Open ceeac opened 5 years ago

ceeac commented 5 years ago

OS: Win7 64 bit Output of 'boomerang-cli --version': boomerang-cli v0.4.0-alpha-387-gb349b74ac

Steps to reproduce:

  1. Build regression test suite on Windows

Expected/desired behaviour: Regression test suite runs successfully

Actual behaviour:

Boomerang Regression Tester
===========================

Cleaning up old data ...
Testing for regressions ......................................................
--- C:\Users\ceeac\Desktop\boomerang\build\tests\regression-tests\expected-outputs\pentium/bswap\bswap\bswap.c
+++ C:\Users\ceeac\Desktop\boomerang\build\tests\regression-tests\expected-outputs\pentium/bswap\bswap\bswap.c
@@ -14,6 +14,6 @@
 /** address: 0x08048370 */
 __size32 bswap(int param1)
 {
-    return (param1 & 0xff) << 24 | (param1 & 0xff00) << 8 | (unsigned int)(param1 & 0xff0000) >> 8 | (unsigned int)(param1 & ~0xffffff) >> 24;
+    return (param1 & 0xff) << 24 | (param1 & 0xff00) << 8 | (unsigned int)(param1 & 0xff0000) >> 8 | (unsigned int)(param1 & 0x7fffffff) >> 24;
 }

r.................................................
--- C:\Users\ceeac\Desktop\boomerang\build\tests\regression-tests\expected-outputs\ppc/fibo\fibo\fibo.c
+++ C:\Users\ceeac\Desktop\boomerang\build\tests\regression-tests\expected-outputs\ppc/fibo\fibo\fibo.c
@@ -8,7 +8,7 @@
     int local0;                // m[g1 - 24]

     printf("Input number: ");
-    scanf("%d", &local0);
+    %g9 = scanf("%d", &local0);
     g3 = fib(local0);
     printf("fibonacci(%d) = %d\n", local0, g3);
     return 0;

r...........................................................................................

Regressions:
r C:\Users\ceeac\Desktop\boomerang\build\out\share\boomerang\samples\pentium/bswap
r C:\Users\ceeac\Desktop\boomerang\build\out\share\boomerang\samples\ppc/fibo

Testing for crashes ................................................................
Testing finished.