Comments (3)
Woah... I never thought about that! That's very cool. I won't be able to get to this in the next day or so - I will check into it soon after.
from mini-rv32ima.
For completeness sake, this is the correct phrasing for the second one:
uint32_t immm4 = ((ir & 0xf00)>>7) | ((ir & 0x7e000000)>>20) | ((ir & 0x80) << 4) | ((uint32_t)((int32_t)ir >> 19) & 0xfffff000);
I am at a bit of an impass. I like the code the way you put it better, but doing optimizations takes the code from 15036 compiled to the same size for the second optimization (And appears to be the same code)... and if I do the first optimization, the code 15148 bytes!! And diffing the .lst's, I can't even figure out why. The compiler just like loses its mind when it goes through a signed typecast.
The first seems like it should be such an obvious win, but the compiler's fighting me and it's got hands.
from mini-rv32ima.
from mini-rv32ima.
Related Issues (20)
- Doom build fails since 32-bit libraries not installed (I think?) HOT 3
- Please express true isa as RV32IMAZicsr_Zifencei HOT 18
- (Suggestion) extension to G(IMAFD)-spec? HOT 4
- vi with no filename faults with access fault HOT 12
- Human readable unit tests for rv64imafdc instructions
- Bare-metal libc HOT 3
- Kernel panics on emulator compiled for ARM (trying to run linux on the Raspberry Pi Pico) HOT 8
- inittab for buildroot HOT 1
- "make testdlimage" => "./mini-rv32ima -f DownloadedImage" ... hangs (tested on 3 different platforms). HOT 4
- I Made it! esp32c3 can run linux with this wonderful emulator HOT 10
- Test page trimming
- Use as an embedded application loader HOT 2
- U-BOOT HOT 5
- Can it run OpenSBI? HOT 9
- Customizing allowed instruction set? HOT 1
- Possible to get a full debian running on this? HOT 1
- Virtual Graphical interface HOT 1
- Invalid Discord Invite HOT 3
- Integrating Kernel on FPGA HOT 3
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 mini-rv32ima.