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

Concretize the result of CLZ and CTZ #25

Open
ercoppa opened this issue Apr 6, 2023 · 0 comments
Open

Concretize the result of CLZ and CTZ #25

ercoppa opened this issue Apr 6, 2023 · 0 comments

Comments

@ercoppa
Copy link

ercoppa commented Apr 6, 2023

SymQEMU does not provide helpers for {clz, ctz}_i{32, 64}. Meanwhile we integrate such helpers, we should at least concretize the symbolic expression of the output value. For instance, from:

tcg_gen_op3_i64(INDEX_op_clz_i64, ret, arg1, arg2);

to:

tcg_gen_op2i_i64(INDEX_op_movi_i64, tcgv_i64_expr_num(ret), 0);
tcg_gen_op3_i64(INDEX_op_clz_i64, ret, arg1, arg2);

Let me know if this fix can be a valid PR or how to improve it.

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