Skip to content

padduw not implemented on MIPS #940

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

Open
GovanifY opened this issue May 31, 2017 · 4 comments
Open

padduw not implemented on MIPS #940

GovanifY opened this issue May 31, 2017 · 4 comments
Labels
LLVM Anything LLVM related Mips Arch No-LLVM-support Current LLVM doesn't support this architecture or extension

Comments

@GovanifY
Copy link

govanify@ThinkPadW500 ~ $ cat test.py 
from capstone import *

CODE= b"\x28\x0c\x00\x70"
md = Cs(CS_ARCH_MIPS, CS_MODE_32)
for i in md.disasm(CODE, 0x1000):
    print("0x%x:\t%s\t%s" %(i.address, i.mnemonic, i.op_str))
govanify@ThinkPadW500 ~ $ python test.py 
govanify@ThinkPadW500 ~ $ 

280c0070 should be disassembled as "padduw at, zero, zero" but is instead not implemented by capstone

@aquynh
Copy link
Collaborator

aquynh commented May 31, 2017

i am already planning to get a major update to Mips & other archs.

can you list all the missing instructions you can find here, for reference?

@GovanifY
Copy link
Author

sure will check what I can for tomorrow, can't say it'll be a full list but I'll see what I can find missing

@wargio
Copy link
Contributor

wargio commented Aug 28, 2024

This cannot be patched because LLVM does not support MIPS EE SIMD instruction set.

Reference: https://psi-rockin.github.io/ps2tek/ (archived)

@Rot127 Rot127 added Mips Arch LLVM Anything LLVM related labels Aug 29, 2024
@Rot127
Copy link
Collaborator

Rot127 commented Aug 29, 2024

For anyone bumping into this issue. There is the possibility to write the table gen file for the extension in LLVM. It will like not be up-streamed to LLVM because the extension is no longer in use. But we can use it to generate our files and support it in Capstone.
This is how we do it for the PPC PS extension.

@Rot127 Rot127 added the No-LLVM-support Current LLVM doesn't support this architecture or extension label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LLVM Anything LLVM related Mips Arch No-LLVM-support Current LLVM doesn't support this architecture or extension
Projects
None yet
Development

No branches or pull requests

4 participants