Skip to content

Commit

Permalink
https://github.com/sdasgup3/binary-decompilation/issues/77
Browse files Browse the repository at this point in the history
  • Loading branch information
sdasgup3 committed Jul 1, 2018
1 parent 1c57136 commit 2972ee2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 18 deletions.
29 changes: 11 additions & 18 deletions tests/gcc.c-torture/job_601_1465/bin_blacklist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -530,28 +530,21 @@ bin/widechar-2-0.asm
bin/zerolen-1-0.asm
bin/zero-struct-1-0.asm
bin/zero-struct-2-0.asm
bin/pr30185-0.asm //div
bin/pr69447-0.asm //div
bin/pr78791-0.asm //div
bin/frame-address-0.asm // div
bin//941202-1-0.asm //alloca
bin/pr71626-1-0.asm // fn ptr
bin//991112-1-0.asm //fn ptr
bin/pr85095-0.asm // builins
bin//pr68381-0.asm // buildin_mul_overflow
bin/990117-1-0.asm // cvt
bin/ipa-sra-1-0.asm //cvt
bin/pr71494-0.asm // gcc error
bin/pr71626-2-0.asm // gcc errro
bin/960513-1-0.asm // x87
bin/990413-2-0.asm // x87
bin/pr47237-0.asm // x87
bin/align-nest-0.asm // shldq
bin/pr61375-0.asm // shrdq
bin/align-nest-0.asm // shldq
bin/pr82210-0.asm //shldq
bin//pr41935-0.asm // shldq
bin/pr84339-0.asm //scasb
bin/pr41935-0.asm // shldq
bin/pr84339-0.asm //scasb
bin/pr85169-0.asm // stosq
bin/pr33870-0.asm //stosq
bin/pr56866-0.asm //stosq
bin/990117-1-0.asm // cvt
bin/ipa-sra-1-0.asm //cvt
bin/pr71494-0.asm // gcc error
bin/pr71626-2-0.asm // gcc errro
bin/960513-1-0.asm // x87
bin/990413-2-0.asm // x87
bin/pr47237-0.asm // x87
bin/pr85095-0.asm // builins
bin//pr68381-0.asm // buildin_mul_overflow
7 changes: 7 additions & 0 deletions tests/gcc.c-torture/job_601_1465/cmd_worklist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,3 +307,10 @@ gcc -I src/library ./src/ipa-sra-2.c -fno-diagnostics-show-caret -fdiagnostic
gcc -I src/library ./src/pr41395-1.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -lm -march=haswell -fno-asynchronous-unwind-tables -S -o ./bin/pr41395-1-0.asm
gcc -I src/library ./src/pr41395-2.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -lm -march=haswell -fno-asynchronous-unwind-tables -S -o ./bin/pr41395-2-0.asm
gcc -I src/library ./src/pr42614.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -lm -march=haswell -fno-asynchronous-unwind-tables -S -o ./bin/pr42614-0.asm
gcc -I src/library ./src/pr30185.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -lm -march=haswell -fno-asynchronous-unwind-tables -S -o ./bin/pr30185-0.asm
gcc -I src/library ./src/pr69447.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -lm -march=haswell -fno-asynchronous-unwind-tables -S -o ./bin/pr69447-0.asm
gcc -I src/library ./src/pr78791.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -lm -march=haswell -fno-asynchronous-unwind-tables -S -o ./bin/pr78791-0.asm
gcc -I src/library ./src/frame-address.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -lm -march=haswell -fno-asynchronous-unwind-tables -S -o ./bin/frame-address-0.asm
gcc -I src/library ./src/941202-1.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -lm -march=haswell -fno-asynchronous-unwind-tables -S -o ./bin/941202-1-0.asm
gcc -I src/library ./src/pr71626-1.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -lm -march=haswell -fno-asynchronous-unwind-tables -S -o ./bin/pr71626-1-0.asm
gcc -I src/library ./src/991112-1.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -lm -march=haswell -fno-asynchronous-unwind-tables -S -o ./bin/991112-1-0.asm
11 changes: 11 additions & 0 deletions tests/gcc.c-torture/scripts/remove_directives.pl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@
print "_start". $1. "\n";
next;
}

if($line =~ m/(.*)call\s*\*(.*)/) {
print $1. "call $2". "\n";
next;
}

if($line =~ m/(.*)jmp\s*\*(.*)/) {
print $1. "call $2". "\n";
next;
}

print $line . "\n";
}

0 comments on commit 2972ee2

Please sign in to comment.