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 add a reduction instruction #9

Open
gxlong1983 opened this issue Feb 26, 2019 · 1 comment
Open

how to add a reduction instruction #9

gxlong1983 opened this issue Feb 26, 2019 · 1 comment

Comments

@gxlong1983
Copy link

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

@meton-robean
Copy link

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

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

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

2 participants