Giter Site home page Giter Site logo

Comments (3)

aswaterman avatar aswaterman commented on September 23, 2024

div a5,a5,0 is a Rocket-specific hack and surely won't generalize. (It's actually probably really bad for OoO microarchitectures.) I'd leave it empty in Go until one of the HINTs is reserved for this purpose. I'd suggest addi x0, x0, 1 a.k.a. c.li x0, 1 for this purpose. @kasanovic is this something we want to do?

from riscv-isa-manual.

aswaterman avatar aswaterman commented on September 23, 2024

We're now thinking that FENCE w,nothing (i.e. PW=1, other bits=0) is the right idiom for this, as I believe someone suggested in another thread.

Part of it is that we think other FENCE xxxx,nothing or FENCE nothing,xxxx patterns will be useful as other memory and I/O related hints, but we don't need to get into that now.

Using a compressible instruction doesn't seem especially important in this case (e.g. the divide idiom shows up only 117 times in my vmlinux). Also, we'd like to preserve the ADDI hint space for something that might actually use the rs1+immediate value the instruction naturally computes, e.g., address-related hints.

@kasanovic will write this up.

from riscv-isa-manual.

aswaterman avatar aswaterman commented on September 23, 2024

Now that the base ISA is ratified, it seems like a good time to address this. I've made the PR #398.

from riscv-isa-manual.

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.