Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ceeac opened this issue Jan 12, 2019 · 0 comments
Open

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

ceeac opened this issue Jan 12, 2019 · 0 comments
Labels
dom: decompilation (P/I) Covers all middle end related issues os: windows (I) This issue is specific to Windows type: regression (I) Decompilation results in different high level code

Comments

@ceeac
Copy link
Member

ceeac commented Jan 12, 2019

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.

@ceeac ceeac added type: regression (I) Decompilation results in different high level code dom: decompilation (P/I) Covers all middle end related issues os: windows (I) This issue is specific to Windows labels Jan 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dom: decompilation (P/I) Covers all middle end related issues os: windows (I) This issue is specific to Windows type: regression (I) Decompilation results in different high level code
Projects
None yet
Development

No branches or pull requests

1 participant