avast / avast/retdec

[capstone2llvmir]: unhandled branch instruction format #1

Open
#980 2 comments 0 reactions 1 assignee Claimed by @PeterMatula View on GitHub
bug C-capstone2llvmir
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I have raw binary firmware file from PowerPC e200z4, which is 32bit PowerPC big endian CPU. And when I ran retdec-decompiler.py I got output

```
Running phase: Initialization ( 0.01s )
Running phase: LLVM ( 0.01s )
Running phase: Providers initialization ( 0.01s )
Running phase: Input binary to LLVM IR decoding ( 0.11s )
[capstone2llvmir]: unhandled branch instruction format #1
Error: Decompilation to LLVM IR failed
```

If it helps, then this is the list of bd* instructions I got from `powerpc-linux-gnu-objdump -m powerpc -M e200z4 -D -b binary -EB firmware.bin` on that file

```
bdnz+
bdnz-
bdnza-
bdnzf+
bdnzf-
bdnzfa+
bdnzfa-
bdnzfl+
bdnzfl-
bdnzfla+
bdnzfla-
bdnzt+
bdnzt-
bdnzta+
bdnzta-
bdnztl+
bdnztl-
bdnztla+
bdnztla-
bdza-
bdzf+
bdzf-
bdzfa+
bdzfa-
bdzfl+
bdzfl-
bdzfla+
bdzfla-
bdzt+
bdzt-
bdzta+
bdzta-
bdztl+
bdztl-
bdztla+
bdztla-
```

Lot of them could be just data interpreted as instructions. I cannot insert full file, but I can send some parts.
Thanks in advance

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.