-
Notifications
You must be signed in to change notification settings - Fork 85
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
Should reduction have a dest/merge operand? #25
Comments
This kind of interface, compiler need merge And user can use |
Hi @kito-cheng, thanks for the comments. I didn't expect scalar be merged into dest. Given that particular instruction
The idea was to allow a way to control the rest of elements of Perhaps I'm missing something obvious here. |
@rofirrim I checked the v isa spec again, it's my mistake, and sounds like your proposal made the interface more consistent. |
+1, I think it's a good idea for consistent interface. |
I also agree with @rofirrim's proposal. If there is no objection, I will update the document for reduction operations. |
Operations that generate a "scalar vector" (e.g.
vmv.s.x
,vfmv.s.f
) have a dest operand of the kind of the destination so the original value, except element 0, can be preserved.For instance
Reductions also generate "scalar vectors" but don't seem to have the same treatment.
Do we want to have a dest operand in this case? Like this:
I don't think it is super fundamental but maybe someone wants to preserve the other elements for some reason?
The text was updated successfully, but these errors were encountered: