Giter Site home page Giter Site logo

Comments (5)

kito-cheng avatar kito-cheng commented on July 18, 2024
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.

rofirrim avatar rofirrim commented on July 18, 2024

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.

kito-cheng avatar kito-cheng commented on July 18, 2024

@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.

zakk0610 avatar zakk0610 commented on July 18, 2024

+1, I think it's a good idea for consistent interface.

from rvv-intrinsic-doc.

Hsiangkai avatar Hsiangkai commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.