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

Verify code generation of the AVX-512 rotates #74

Merged
merged 5 commits into from
Aug 12, 2018

Conversation

gnzlbg
Copy link
Contributor

@gnzlbg gnzlbg commented Aug 10, 2018

This PR:

  • adds an internal verify/ crate that uses stdsimd-test's assert_instr macro to disassembly functions at run-time and verify the generated assembly.

  • it adds the verification for the AVX-512 vector rotates (initally in add rotate_left/right stdarch#496, but put on hold due to the migration to packed_simd).

cc @TheIronBorn I hope I did not miss anything. I managed to get the variable rotates working correctly. The reason they were failing is that you were passing the "variable" argument as an immediate. Instead of hardcoding it I just added it as a function argument, and in that case the right instruction is generated.

@gnzlbg gnzlbg merged commit d52fc0d into rust-lang:master Aug 12, 2018
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

Successfully merging this pull request may close these issues.

1 participant