Failure to decompile MIPS ("Instruction does not dominate all uses!")
- Dominant language
- C++
- Stars
- 8.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
This happens using the latest retdec git code (d57764ab as I write this).
Executable itself:
```
Input file : /tmp/hiby_player
File format : ELF
File class : 32-bit
File type : Executable file
Architecture : MIPS (MIPS I Architecture)
Endianness : Little endian
Entry point address : 0x414e30
Entry point offset : 0x14e30
Entry point section name : .text
Entry point section index: 13
Bytes on entry point : 72001c3c602b9c2721f800004100043c804d84240000a58f0400a627f8ff012424e8a103e0ffbd276500073ce072e7246500
Detected tool : GCC (4.7.2) (compiler), .comment section heuristic
Detected tool : GCC (4.6) (compiler), .comment section heuristic
Detected tool : GCC (4.5.4) (compiler), 60 from 183 significant nibbles (32.7869%)
```
Here's where it barfs:
```
Running phase: Initialization ( 0.01s )
Running phase: LLVM ( 0.02s )
Running phase: Providers initialization ( 0.02s )
Running phase: Input binary to LLVM IR decoding ( 0.13s )
Running phase: LLVM ( 8.82s )
Instruction does not dominate all uses!
%191 = icmp eq i32 %189, %190
br i1 %191, label %dec_label_pc_42c578, label %dec_label_pc_42c3c8
LLVM ERROR: Broken function found, compilation aborted!
Error: Decompilation to LLVM IR failed
```
The executable targets an Ingenic X1000 (mips32r2 presumably with their Xburst instructions). I can supply the executable or whatever intermediate info is needed; just let me know.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.