-
Notifications
You must be signed in to change notification settings - Fork 42
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 add a reduction instruction #9
Comments
I also want to add an reduction instruction to sum all the element of a vector. But I don't find such instruction in Hwacha Mannual |
hi
we want to add an reduction instruction to sum all the element of a vector and the result is placed in a shared register.
You can see the similar instruction of vredsum.vs in the v-spec of risc-v and its web site is https://github.com/riscv/riscv-v-spec/blob/master/v-spec.adoc.
I copy the example of the vredsum.vs instruction below.
vredsum.vs vd, vs2, vs1, vm # vd[0] = sum( vs2[*] , vs1[0] )
Could you please give us some advice how to implement it in hwacha? Thanks.
Best Regards,
--gao
The text was updated successfully, but these errors were encountered: