Comments (3)
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 HINT
s 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.
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.
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)
- Manuals reference in the main ISA
- Forgotten Sentence HOT 1
- Outdated page number HOT 1
- When rm is added to the assembly, GCC fails to compile for fcvt.d.w/fcvt.d.wu/fcvt.s.h/fcvt.d.h/fcvt.d.s instructions HOT 2
- Discrepancy in mhpmevent bits for Sscofpmf HOT 23
- Clarify Zicfilp landing pad fault behavior HOT 6
- Unused wavedrom files HOT 2
- How to clear the pending of VS-level timer interrupts which pending is set by hvip.vstip and trap to VS mode? HOT 2
- Enhance RISC-V Instruction Documentation HOT 9
- should mseccfg.MLPE be cleared at reset? HOT 3
- Reference Bug HOT 1
- Zicfiss/Zicfilp interaction with Zc extension HOT 2
- Clarification on tail elements for vector load fault-only-first HOT 2
- orc.b is listed with two operands in section 30.4 HOT 1
- Bump docs-resources ahead
- How to get the size of physical address and virtual address in RISCV? HOT 6
- Is the Length of the Guest Physical Address Implementation-Defined or Fixed to a Wider 2-Bit Format? HOT 4
- Formulas (images) not displayed in Apple Books v6.4 HOT 4
- Zcmt: clarify translation of jvt-based addresses in M-mode HOT 5
- Performance of misaligned loads HOT 7
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 riscv-isa-manual.