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

How to know if Triton supports an instruction when using ONLY_ON_SYMBOLIZED #400

Closed
0ca opened this issue Oct 13, 2016 · 1 comment
Closed

Comments

@0ca
Copy link
Contributor

0ca commented Oct 13, 2016

Hi,

I would like to know when an instruction is not supported by Triton (p.e. some fpu instructions).

My first idea was to check if for that instruction there is any symbolic expressions, and where there aren't I know Triton doesn't support that instruction.

But I can't do that when the optimization ONLY_ON_SYMBOLIZED is enabled.

Is there other way to achieve that? Would it be possible to return a boolean in buildSemantics to know if the instruction is supported or not?

Thank you!

PS: I want to use this for: illera88/Ponce#59

@JonathanSalwan
Copy link
Owner

Should be OK now.

>>> inst = Instruction()
>>> inst.setOpcodes("\xF2\x0F\x58\xCA") # addsd xmm1, xmm2
>>> processing(inst)
False
>>> inst = Instruction()
>>> inst.setOpcodes("\x48\x31\xC0") # xor rax, rax
>>> processing(inst)
True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants