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

tritonast2arybo: unsupported node type 79 (BVSMOD) #26

Open
dvcrn opened this issue Jul 21, 2020 · 1 comment
Open

tritonast2arybo: unsupported node type 79 (BVSMOD) #26

dvcrn opened this issue Jul 21, 2020 · 1 comment

Comments

@dvcrn
Copy link

dvcrn commented Jul 21, 2020

Trying to go from Triton AST to LLVM IR by running some examples but getting unsupported node type 79 for BVSMOD

Is it possible to support this in arybo or is there a workaround?

@dvcrn
Copy link
Author

dvcrn commented Jul 22, 2020

I copied some code from TritonASTLLVMIRTranslator to arybo to hotfix-fix this:

def glue_for_bvsmod(lhs, rhs):
    srem = lhs.srem(rhs)
    add = srem.__add__(rhs)
    return add.srem(rhs)

I wanted to submit a PR but the testsuite for the triton part is very outdated so bumping it to work with the most recent Triton takes a bit more time

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

No branches or pull requests

1 participant