Comments (5)
vint32m1_t vredmax_vs_i32m2_i32m1 (vin32m1_t dest, vint32m2_t vector, vint32m1_t scalar);
This kind of interface, compiler need merge dest
and scalar
first, which might emit 1~2 extra instructions, those instructions might able to optimize out later, but it little violate current 1-1 mapping design principle.
And user can use vmv_s_x
+ vredmax_vs
to get same semantics if they want, so I would prefer keep current interfcae.
from rvv-intrinsic-doc.
Hi @kito-cheng, thanks for the comments.
I didn't expect scalar be merged into dest. Given that particular instruction
vredmax.vs vd, vs2, vs1, vm # vd[0] = max( vs1[0] , vs2[*] )
The idea was to allow a way to control the rest of elements of vd
that are not updated (vd[1:VLMAX-1]
). We can achieve this if dest
is stored in vd
already, without extra instructions, right? (vector
would be in vs2
and scalar
in vs1
)
Perhaps I'm missing something obvious here.
from rvv-intrinsic-doc.
@rofirrim I checked the v isa spec again, it's my mistake, and sounds like your proposal made the interface more consistent.
from rvv-intrinsic-doc.
+1, I think it's a good idea for consistent interface.
from rvv-intrinsic-doc.
I also agree with @rofirrim's proposal. If there is no objection, I will update the document for reduction operations.
from rvv-intrinsic-doc.
Related Issues (20)
- Simple questions about inline assembly in vmv.x.s instruction HOT 2
- Asterisks are not subscripts
- the wrong result of "vmerge_vvm_i32m1" HOT 5
- ta,ma reduction destination with vl=0 HOT 1
- Clarify the consequences of vxsat not being handled by the intrinsics HOT 3
- Add a section with examples HOT 3
- Rename uses of {implicit,explicit}-frm into {Implicit, Explicit} FP rounding mode HOT 1
- Clarify the mapping of pseudo-intrinsics
- Clarify what float and double means HOT 1
- Fix authors in the document
- How to use LMUL in rvv-intrinsic? HOT 6
- Mismatched bfloat16 autogenerated files HOT 3
- Freeze the specification HOT 1
- `vfirst` and `vcpop` return types unexpectedly changed HOT 1
- Renaming the VL arguments to AVL HOT 4
- Should bf16 vmv.v.v and vmerge.vvm be supported with Zvfbfmin? HOT 1
- Should f16 vrgather/vcompress be supported for f16 with Zvfhmin? bf16 with Zvfbfmin? HOT 1
- Should f16 vundefined/lmul_ext/lmul_trunc/vget/vset/vcreate be support with Zvfhmin HOT 1
- Wrong argument names for .vf widening multiply-add intrinsics
- matmul example in doc is out of data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rvv-intrinsic-doc.